org.jmat.function
Class TestDoubleFunction

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

public abstract class TestDoubleFunction
extends Function

Titre : JAva MAtrix TOols

Description :


Field Summary
 
Fields inherited from class org.jmat.function.Function
argNumber
 
Constructor Summary
TestDoubleFunction()
           
 
Method Summary
 boolean eval(double[] values)
           
abstract  boolean 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

TestDoubleFunction

public TestDoubleFunction()
Method Detail

eval

public abstract boolean eval(Matrix values)

eval

public boolean eval(double[] 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)