Difference between revisions of "Normalize"

Line 19: Line 19:
 
''Normalize'' does '''not''' cause the length of the resulting vector to be 1.  To normalize in that sense, use:
 
''Normalize'' does '''not''' cause the length of the resulting vector to be 1.  To normalize in that sense, use:
 
  R / [[Sqrt]]([[Sum]](R^2,I))
 
  R / [[Sqrt]]([[Sum]](R^2,I))
 +
 +
= See Also =
 +
 +
* [[Area]]
 +
* [[Integrate]]

Revision as of 02:20, 13 September 2009


Returns a scaled version of array R such that the area across index I is 1.

Should the function Normalize be deprecated and eventually removed from Analytica? See the discussion tab and please weigh in with your opinions!

Declaration

Normalize( R : Numeric[I] ; I : Index )

or

Normalize(R1,R2,I)

Notes

Normalize does not force the values along index I to sum to 1; to make the values sum to 1, use

R/Sum(R,I).

Normalize does not cause the length of the resulting vector to be 1. To normalize in that sense, use:

R / Sqrt(Sum(R^2,I))

See Also

Comments


You are not allowed to post comments.