Readme as stress

This commit is contained in:
Pitchaya Boonsarngsuk
2018-02-05 11:46:38 +00:00
parent 02c2ad864b
commit e7dc79d97e

View File

@@ -134,3 +134,10 @@ Returns the stress of the layout.
Returns the average velocity of the iteration. Returns the average velocity of the iteration.
### Hybrid Layout ### Hybrid Layout
### Miscellaneous
<a name="calculateStress" href="#calculateStress">#</a> d3.**calculateStress**(*nodes*, *distance*) [<>](src/stress.js "Source")
Calculate stress of a whole system, based on sum-of-squared errors of inter-object distances. *nodes* is the array of all nodes in the system and *distance* is the function to calculate the desired distance between two node objects. *distance* is expected to have the same prototype as the one in [springLink](#springLink_distance).