net.moioli.drawables
Interface FunctionByPointsI

All Superinterfaces:
DrawableI, FunctionI
All Known Implementing Classes:
FunctionByPointsLines

public interface FunctionByPointsI
extends DrawableI, FunctionI

A function which is defined (empirically) from a set of points.

Version:
2005/10/5
Author:
Silvio Moioli

Method Summary
 double[] getAscissae()
          Returns an array with the ascissae of the points that define this function.
 double[] getOrdinate()
          Returns an array with the ordinate of the points that define this function.
 void setAscissae(double[] ascissae)
          Changes the ascissae of the points that define this function.
 void setOrdinate(double[] ordinate)
          Changes the ordinate of the points that define this function.
 
Methods inherited from interface net.moioli.chart.DrawableI
drawMe, maxY, minY
 
Methods inherited from interface net.moioli.drawables.FunctionI
f
 

Method Detail

getAscissae

double[] getAscissae()
Returns an array with the ascissae of the points that define this function.

Returns:
an array of double

setAscissae

void setAscissae(double[] ascissae)
Changes the ascissae of the points that define this function.

Parameters:
ascissae - the ascissae to set.

getOrdinate

double[] getOrdinate()
Returns an array with the ordinate of the points that define this function.

Returns:
an array of double

setOrdinate

void setOrdinate(double[] ordinate)
Changes the ordinate of the points that define this function.

Parameters:
ordinate - the ascissae to set.