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)

Variable Index

 o domain_dim
The dimension of the domain space.
 o range_dim
The dimension of the range space.

Constructor Index

 o FunctionApproximator(int, int)
Create an instance of a function approximator.
 o FunctionApproximator(String)
Create an instance of a function approximator according to the definition in a given file.

Method Index

 o query(double[])
Query the function approximator.
 o saveDefinition(String)
Save a definition of this instance in a file.
 o update(double[], double[])
Add a case to the approximator's learning set.

Variables

 o domain_dim
 public final int domain_dim
The dimension of the domain space.

 o range_dim
 public final int range_dim
The dimension of the range space.

Constructors

 o 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.
 o 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.

Methods

 o 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.
 o 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.
 o 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