Readme as stress
This commit is contained in:
1 parent
02c2ad864b
commit
e7dc79d97e
1 file changed
+7
@@ -134,3 +134,10 @@ Returns the stress of the layout.
|
||||
Returns the average velocity of the iteration.
|
||||
|
||||
### 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).
|
||||
Reference in new issue
Block a user