Image_Graph
[ class tree: Image_Graph ] [ index: Image_Graph ] [ all elements ]

Class: Image_Graph_Dataset_Function

Source Location: /Image_Graph-0.8.0/Graph/Dataset/Function.php

Class Overview

Image_Graph_Dataset
   |
   --Image_Graph_Dataset_Function

Function data set, points are generated by calling an external function.


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Dataset

Image_Graph_Dataset::Image_Graph_Dataset()
Image_Graph_Dataset [Constructor]
Image_Graph_Dataset::addPoint()
Add a point to the dataset
Image_Graph_Dataset::count()
The number of values in the dataset
Image_Graph_Dataset::first()
The first point
Image_Graph_Dataset::last()
The last point
Image_Graph_Dataset::maximumX()
The maximum X value
Image_Graph_Dataset::maximumY()
The maximum Y value
Image_Graph_Dataset::minimumX()
The minimum X value
Image_Graph_Dataset::minimumY()
The minimum Y value
Image_Graph_Dataset::setName()
Sets the name of the data set, used for legending

Class Details

[line 54]
Function data set, points are generated by calling an external function.

The function must be a single variable function and return a the result, builtin functions that are fx sin() or cos(). User defined function can be used if they are such, i.e: function myFunction($variable)



[ Top ]


Method Detail

Image_Graph_Dataset_Function (Constructor)   [line 73]

Image_Graph_Dataset_Function Image_Graph_Dataset_Function( double $minimumX, double $maximumX, string $function, int $points)

Image_Graph_FunctionDataset [Constructor]

Parameters:

double   $minimumX     The minimum X value
double   $maximumX     The maximum X value
string   $function     The name of the function, if must be a single parameter function like fx sin(x) or cos(x)
int   $points     The number of points to create

[ Top ]

addPoint   [line 94]

void addPoint( int $x, [int $y = false], [var $ID = false])

Add a point to the dataset.

You can't add points to a function dataset


Overrides Image_Graph_Dataset::addPoint() (Add a point to the dataset)

Parameters:

int   $x     The X value to add
int   $y     The Y value to add, can be omited
var   $ID     The ID of the point

[ Top ]


Documentation generated on Tue, 05 Oct 2010 16:00:33 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.