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

Class: Image_Graph_Dataset_Function

Source Location: /Image_Graph-0.3.0dev1/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 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::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 48]
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 ]


Method Detail

Image_Graph_Dataset_Function (Constructor)   [line 66]

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 83]

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 Mon, 11 Mar 2019 13:57:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.