-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation #12
Comments
The problem with your code is that you’re calling |
Thanks, @jasondavies. I’ll try to get |
Here's another example that uses the loess function with D3. I made this to try to understand the API. Here's a stab at partial API documentation (in the style of @mbostock) based on my limited understanding so far: # stats.loess() Constructs a LOESS curve generator instance. var myLoess = science.stats.loess(); # loess.bandwidth(bandwidth) Specifies the bandwidth (smoothing parameter) that controls how fine or coarse the smoothing is. Lower values fit the curve closer to the data, higher values make the curve more straight. myLoess.bandwidth(0.2); # loess(xValues,yValues) Invokes the LOESS algorithm to generate the smoothed curve. Accepts as input two arrays of values in data space. These two arrays must be of the same length. Returns an array of smoothed Y values that has the same number of elements as the input arrays. var yValuesSmooth = myLoess(xValues, yValues); |
A guide would probably be better than a wiki; personally, I am trying to use
loess.js
for a project of mine, but some documentation beyond the included loess example would definitely help. :)I’ve created a basic docco webpage for
science.v1.js
here as an alternative to the basic GitHub inspection.#d3.js
at freenode is really low on activity, but maybe I could try asking around to see which other parts of science.js people would like to see documentation/guides for.The text was updated successfully, but these errors were encountered: