javascript - Drawling normal distribution curve with mean and standard deviation in JS -


i have api when hit gives me mean , standard deviation. want generate mean distribution curve based on above 2 values. how can using javascript(d3.js). want curve generated different values of mean , sigma. mean fitting curve should generated irrespective of mean , sigma api.

there equations calculating normal distribution given mean , standard deviation. wikipedia page normal distribution shows density function, want.

so you'll want generate function based on mean , variance (standard deviation squared) returned api, generate points using function , chart them using d3.js.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -