diff --git a/README.md b/README.md index c3aff94..4848e0a 100644 --- a/README.md +++ b/README.md @@ -134,3 +134,10 @@ Returns the stress of the layout. Returns the average velocity of the iteration. ### Hybrid Layout + + +### Miscellaneous + +# 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).