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

Class: Image_Graph_Dataset_Function

Source Location: /Graph/Dataset/Function.php

Class Overview

Image_Graph_Dataset
   |
   --Image_Graph_Dataset_Function

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


Methods


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::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 46]
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) User defined function can be used if they are such, i.e: {




[ Top ]


Class Methods


constructor Image_Graph_Dataset_Function [line 63]

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   Points The number of points to create

[ Top ]

method addPoint [line 80]

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 Fri, 12 Nov 2004 08:25:21 +0100 by phpDocumentor 1.3.0RC3