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

Class: Image_Graph_Dataset_VectorFunction

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

Class Overview

Image_Graph_Dataset
   |
   --Image_Graph_Dataset_VectorFunction

Vector Function data set.


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 53]
Vector Function data set.

Points are generated by calling 2 external functions, fx. x = sin(t) and y = cos(t)



[ Top ]


Method Detail

Image_Graph_Dataset_VectorFunction (Constructor)   [line 95]

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 ]

addPoint   [line 115]

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