scale data, almost equal with
scale, but safely
when vec is all equal,
scale will give all NAN results, which is not
acceptable for the fallowing caculation,
scaleSafe will give all 0 vector
in this case.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.