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
Post a Comment