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

Class: Image_Graph_Dataset_VectorFunction

Source Location: /Graph/Dataset/VectorFunction.php

Class Overview

Image_Graph_Dataset
   |
   --Image_Graph_Dataset_VectorFunction

Vector Function data set, points are generated by calling 2 external functions, x = sin(t) and y = cos(t)


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 42]
Vector Function data set, points are generated by calling 2 external functions, x = sin(t) and y = cos(t)



[ Top ]


Class Methods


constructor Image_Graph_Dataset_VectorFunction [line 81]

Image_Graph_Dataset_VectorFunction &Image_Graph_Dataset_VectorFunction( double $minimumT, double $maximumT, string $functionX, string $functionY, int $points)

Image_Graph_VectorFunctionDataset [Constructor]



Parameters:

double   $minimumT   The minimum value of the vector function variable
double   $maximumT   The maximum value of the vector function variable
string   $functionX   The name of the X function, if must be a single parameter function like fx sin(x) or cos(x)
string   $functionY   The name of the Y function, if must be a single parameter function like fx sin(x) or cos(x)
int   $points   The number of points to create

[ Top ]

method addPoint [line 98]

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

Add a point to the 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:55 +0100 by phpDocumentor 1.3.0RC3