Difference between revisions of "Normalize Command"

From GeoGebra Manual
Jump to: navigation, search
(Created page with "<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|function|Normalize}} ;Normalize[ <List of Numbers> ] : Return list of ''normalized'' values for given numbers. :{...")
 
Line 2: Line 2:
  
  
;Normalize[ <List of Numbers> ] : Return list of ''normalized'' values for given numbers.
+
;Normalize[ <List of Numbers> ]: Returns a list containing the ''normalized'' form of the given numbers.
:{{example|<code>Normalize[{1, 2, 3, 4, 5}]</code> return  ''{0, 0.25, 0.5, 0.75, 1}'' .}}
+
:{{example|<code>Normalize[{1, 2, 3, 4, 5}]</code> returns  ''{0, 0.25, 0.5, 0.75, 1}''.}}
  
  
;Normalize[ <List of Points> ] : Return list of points with x-coordinates (y-coordinates) ''normalized'' values for x-coordinates (y-coordinates) of given points.
+
;Normalize[ <List of Points> ] : Returns a list containing the ''normalized'' form of the given points.
:{{example|<code>Normalize[{(1,5),(2,4),(3,3),(4,2),(5,1)}] </code> return ''{(0,1), (0.25,0.75), (0.5,0.5), (0.75,0.25), (1,0)}'' .}}
+
:{{example|<code>Normalize[{(1,5), (2,4), (3,3), (4,2), (5,1)}]</code> returns ''{(0,1), (0.25,0.75), (0.5,0.5), (0.75,0.25), (1,0)}''.}}
  
{{warning|"Points" means (yet ?) Points 2D not 3D}}
+
{{Notes|1=
 
+
*This command is not applicable to 3D points.
{{Note|Normalize values of a list means transform all values in  [0 ; 1] using linear function  <math>x \mapsto \frac{x-Min[list]}{Max[list]-Min[list]}</math> .}}
+
*The operation of ''normalization'' maps a value ''x'' to the interval [0, 1] using the linear function  <math>x \mapsto \frac{x-Min[list]}{Max[list]-Min[list]}</math>.}}

Revision as of 09:37, 19 July 2015



Normalize[ <List of Numbers> ]
Returns a list containing the normalized form of the given numbers.
Example: Normalize[{1, 2, 3, 4, 5}] returns {0, 0.25, 0.5, 0.75, 1}.


Normalize[ <List of Points> ]
Returns a list containing the normalized form of the given points.
Example: Normalize[{(1,5), (2,4), (3,3), (4,2), (5,1)}] returns {(0,1), (0.25,0.75), (0.5,0.5), (0.75,0.25), (1,0)}.


Notes:
  • This command is not applicable to 3D points.
  • The operation of normalization maps a value x to the interval [0, 1] using the linear function x \mapsto \frac{x-Min[list]}{Max[list]-Min[list]}.
© 2024 International GeoGebra Institute