Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

How to scale a double like 1.9416746607144E+36 down so I can use in a winForms chart?

There are many ways of mapping the range [0:10e36] onto the range [0:1] (or whichever concordant system you want.)

The first question you should be asking is: what do values that big actually represent, and if i have 1e24, 1e34 and 1e36 as 'Legitimate' values what would i like to see on the chart.

The simplest answer is in the comment by dbugger above with a simple division to rescale the range, but depending on your use case (very few things end up with a legitimate number that large, check for underflow or almost-div-0 errors) then a rescaling function like log(x) , or x^(1/4)/10e6 re-scaling functions may be more appropriate.

There are only 7.1e9 people on earth, earth weighs 5.98*10e24 kg, the universe is expected to be in existence around 3e20 milliseconds (10 billion years), and there are also approx 10e20 stars in the universe.

The point is 10e36 does not represent any type of phsyical thing, so perhaps working out what you are trying to plot will aid you in describing how to convert those numbers into a sensible plotting range.

Categories : C#

Related to : How to scale a double like 1.9416746607144E+36 down so I can use in a winForms chart?
Zing Chart Y-scale data out of frame
Try adding the plotarea object to your JSON and add the margin attribute to that object. I tried it with a margin of 100px and it made everything fit in-- var chartJSON = { "legend":{ "border-color":"#bbbbbb", "margin-top":10, "margin-left":0, "drag-handler":"header", "item":{

Categories : Misc
Density scale of Y axis mysteriously changed when X scale is transformed to log10
The density should integrate to 1, which still allows the point estimate of the density as some point to exceed 1. However, the reason that the general shape of the density is changing is that scale_x_log10() and coord_trans(x="log10") do different things. In particular, the scale transformation (scale_x_log10()) happens before any statistics (such as density) are computed. So the density that is

Categories : R
jQuery Highcharts double donut chart (donut within donut)
No, it's perfectly possible. It's just bloody difficult. But hey, why not? The problem with High Charts is that you cannot rotate nor position your charts with a specific angle. So to allow you to create the effect you mentioned, we must create a seperate chart for every new data item. Of course, you don't want to hardcode all this so we need generate the code with a for loop, taking into accou

Categories : Jquery
compare Java Double.Max_VALUE with large double numbers returns true
I think the problem is in this line | v new Double(Double.MAX_VALUE).equals(new Double(Double.MAX_VALUE - 99999999999999999999999D)) DOUBLE MAX_VALUE = Double.MAX_VALUE - 99999999999999999999999D AND you're comparing it with new Double(Double.MAX_VALUE - 99999999999999999999999D

Categories : Java
Using regex to find a double quote within string encased in double quotes
For the example you gave just "w" works as the regex to find "C" Try it here The replacing mechanism is probably built into ultraedit

Categories : Regex
Recently Add
How to find current index of your list / array in a changing list?
Comparing a null terminated string to a non-null terminated string
How to find out if something will collide with something in Unity (2D)
How do I populate a listbox based on a selected item from another listbox?
C# FOREACH on multiple LIST<> types
How can i match inner expression on nested expression with regular expressions?
How to connect from client using CCDT and SSL to Remote Queue Manager (WebSphere MQ Server) using C#
How to write Firefox plugin with C# and mono?
Shake Gestures Windows Phone
Thread.Sleep and Painting UI
What is the purpose of TabPage.Hide()
Using Dictionary to count the number of appearances c# create a new page and refresh routing map
Don't know where is database that was created using Entity Framework
Want to understand async
How to open excel file's read only mode on C#?
How to programmatically set App Pool Identity
using .NET TimeZoneInfo Pacific Standard Time (PST) versus Pacific Daylight Time (PDT)
Why can't I assign null to an Object in C#?
GroupLevelIndicatorPane causes ColumnStretchMode=ALL to not fit columns
Cascading Multiple Inheritance and Events
Mutator makes program run indefinitely
How to generate excel like report in WPF?
How to check if user clicked on an image in web browser control
WCF Service with entity framework error with more than table
Why am I not getting the text from my file with this code?
Accessing TFS Work Item Properties "Blocked" & "Root Cause" using TFS API
How to pass values to a user control in winforms c#
How to determine the type of Group from an ldap path
What files am I missing wile running migrations from a console app?
© Copyright 2017 Publishing Limited. All rights reserved.