Login Register Wishes Forum About
Language Reference » Dataset functions » getSerieAverage
Help topics
Latest updates
3744d  replaceImageMapTitle
3744d  replaceImageMapValues
3744d  createFunctionSerie
3744d  setAbsicssaPosition
3744d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
getSerieAverage - Return the average value of the given serie

This function will return you the average value of the given serie.

Calling this function

Where :

Serie is the name of the serie.

Sample script

 /* Create the pData object */
 $MyData = new pData(); 

 /* Add some points to "My serie 1" */
 $MyData->addPoints(array(1,2,3,4),"My serie 1");

 /* Display the average value of "My serie 1" */
 echo $MyData->getSerieAverage("My serie 1");

This will display 2.5.
Last updated on 10/20/2009 
by Jean-Damien 
Linked resources
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. 413 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.