All Packages Class Hierarchy This Package Previous Next Index
Class EDU.gatech.cc.is.learning.FunctionApproximator
java.lang.Object
|
+----EDU.gatech.cc.is.learning.FunctionApproximator
- public abstract class FunctionApproximator
- extends Object
- implements Cloneable, Serializable
Provides an abstract interface to
various function approximator implementations.
Copyright
(c)1997 Georgia Tech Research Corporation
- Version:
- $Revision: 1.2 $
- Author:
- Juan Carlos Santamaria (carlos@cc.gatech.edu)
-
domain_dim
- The dimension of the domain space.
-
range_dim
- The dimension of the range space.
-
FunctionApproximator(int, int)
- Create an instance of a function approximator.
-
FunctionApproximator(String)
- Create an instance of a function approximator according to the
definition in a given file.
-
query(double[])
- Query the function approximator.
-
saveDefinition(String)
- Save a definition of this instance in a file.
-
update(double[], double[])
- Add a case to the approximator's learning set.
domain_dim
public final int domain_dim
- The dimension of the domain space.
range_dim
public final int range_dim
- The dimension of the range space.
FunctionApproximator
public FunctionApproximator(int n,
int m)
- Create an instance of a function approximator. The approximator
will map from
n
dimensions to m
dimensions.
- Parameters:
- n - dimension of the domain space.
- m - dimension of the range space.
FunctionApproximator
public FunctionApproximator(String filename) throws FunctionApproximatorException
- Create an instance of a function approximator according to the
definition in a given file. The file format depends on the
particular implementation.
- Parameters:
- filename - dimension of the domain space.
- Throws: FunctionApproximatorException
- always.
saveDefinition
public abstract void saveDefinition(String filename) throws FunctionApproximatorException, IOException
- Save a definition of this instance in a file.
- Parameters:
- filename - the file name.
- Throws: IOException
- if an I/O error occurs.
- Throws: FunctionApproximatorException
- if something wrong occurs.
query
public abstract double[] query(double q[]) throws FunctionApproximatorException
- Query the function approximator.
- Parameters:
- q - an n-dimensional array of doubles specifying a point
to evaluate.
- Returns:
- an m-dimensional array of doubles representing the
value at the query point.
- Throws: FunctionApproximatorException
- if something wrong occurs.
update
public abstract void update(double q[],
double p[]) throws FunctionApproximatorException
- Add a case to the approximator's learning set. For some
learners, this has no effect.
- Parameters:
- q - an n-dimensional array of doubles specifying a point
in the domain space.
- p - an m-dimensional array of doubles specifying the
associate point in the range space.
- Throws: FunctionApproximatorException
- if something wrong occurs.
All Packages Class Hierarchy This Package Previous Next Index