Login Register Wishes Forum About
Language Reference » Dataset functions » normalize
Help topics
Latest updates
4669d  replaceImageMapTitle
4669d  replaceImageMapValues
4669d  createFunctionSerie
4669d  setAbsicssaPosition
4669d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
normalize - Normalize your data series

This function allow you to normalize your data series by providing a 0-value range. This function is usually called when we want to normalize the dataset to a 100% scale. The points that are computed will replace your data series, each data row sum will be equal to the value provided.

This function will modify your datasets in a non reversive way.

Calling this function
Where :

NormalizationFactor is the value used for the normalization process. Usually 100.
UnitChange, if provided will override the axis unit. Set it to "%" if you use a factor 100.
Round is the number of decimal value to keep.

All parameters are optional

Sample script


 $MyData = new pData();  
 $MyData->addPoints(array(-4,VOID,VOID,12,8,3),"Frontend #1");
 $MyData->addPoints(array(3,12,15,8,5,-5),"Frontend #2");
 $MyData->addPoints(array(2,7,5,18,19,22),"Frontend #3");
 $MyData->setAxisName(0,"Average Usage");


 $myPicture = new pImage(700,230,$MyData);




Last updated on 09/07/2010 
by Jean-Damien 
Linked resources
  There is no linked topic yet.
Community comments
  No comments have been posted yet.
© Copyrights
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 415 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.