de.unidu.is.learning
Interface Learner

All Known Implementing Classes:
GnuplotLearner

public interface Learner

An interface for learning parameters of a function.

Since:
2003-07-17
Version:
$Revision: 1.4 $, $Date: 2005/02/21 17:29:19 $
Author:
Henrik Nottelmann

Method Summary
 java.util.Map learn(double[] x, double[] y, java.lang.String function, java.lang.String[] vars)
          Learns the specified variables of the specified function with the given data points.
 java.util.Map learn(java.lang.String filename, java.lang.String separator, java.lang.String function, java.lang.String[] vars)
          Learns the specified variables of the specified function with the given data points.
 

Method Detail

learn

public java.util.Map learn(double[] x,
                           double[] y,
                           java.lang.String function,
                           java.lang.String[] vars)
Learns the specified variables of the specified function with the given data points.

Parameters:
x - array with x values
y - array with y values
function - function
vars - variables to learn
Returns:
map with variables and values

learn

public java.util.Map learn(java.lang.String filename,
                           java.lang.String separator,
                           java.lang.String function,
                           java.lang.String[] vars)
Learns the specified variables of the specified function with the given data points.

Internally, the Linux/Unix tool gnuplot is used for learning.

Parameters:
filename - name of file with data points
separator - string separating x and y values
function - function
vars - variables to learn
Returns:
map with variables and values