From e7dc79d97efd73e8594d99324187f3bb7f983d23 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk <2285135b@student.gla.ac.uk> Date: Mon, 5 Feb 2018 11:46:38 +0000 Subject: [PATCH] Readme as stress --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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).