org.jmat.function
Class DoubleFunction

java.lang.Object
  |
  +--org.jmat.function.Function
        |
        +--org.jmat.function.DoubleFunction
All Implemented Interfaces:
CommandLinePrintable, StringPrintable
Direct Known Subclasses:
DoubleFunctionExpression, DoubleFunctionInterpolation

public abstract class DoubleFunction
extends Function

Titre : JAva MAtrix TOols

Description :


Field Summary
 
Fields inherited from class org.jmat.function.Function
argNumber
 
Constructor Summary
DoubleFunction()
           
 
Method Summary
abstract  double eval(Matrix values)
           
 Plot2DPanel toPlot2DPanel(double Xmin, double Xmax, java.lang.String name, java.lang.String type)
          Plot the DoubleFunction in a JPanel
 Plot3DPanel toPlot3DPanel(double[] Xmin, double[] Xmax, java.lang.String name, java.lang.String type)
          Plot the DoubleFunction in a JPanel
 
Methods inherited from class org.jmat.function.Function
checkArgNumber, getArgNumber, toCommandLine, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleFunction

public DoubleFunction()
Method Detail

eval

public abstract double eval(Matrix values)

toPlot2DPanel

public Plot2DPanel toPlot2DPanel(double Xmin,
                                 double Xmax,
                                 java.lang.String name,
                                 java.lang.String type)
Plot the DoubleFunction in a JPanel

Parameters:
Xmin - Min bounds.
Xmax - Max bounds.
name - Name of the plot.
type - type of the plot.
Returns:
A PlotPanel (extends a JPanel)

toPlot3DPanel

public Plot3DPanel toPlot3DPanel(double[] Xmin,
                                 double[] Xmax,
                                 java.lang.String name,
                                 java.lang.String type)
Plot the DoubleFunction in a JPanel

Parameters:
Xmin - Min bounds.
Xmax - Max bounds.
name - Name of the plot.
type - type of the plot.
Returns:
A PlotPanel (extends a JPanel)