de.unidu.is.gnuplot
Class GnuplotLearner

java.lang.Object
  extended byde.unidu.is.gnuplot.GnuplotLearner
All Implemented Interfaces:
Learner

public class GnuplotLearner
extends java.lang.Object
implements Learner

A class for learning parameters of a function with the Linux/Unix tool gnuplot.

Since:
2002-05-14
Version:
$Revision: 1.6 $, $Date: 2005/02/21 17:29:19 $
Author:
Henrik Nottelmann

Field Summary
protected static org.apache.log4j.Logger logger
          The general proxy logger (for all proxies).
 
Constructor Summary
GnuplotLearner()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
The general proxy logger (for all proxies).

Constructor Detail

GnuplotLearner

public GnuplotLearner()
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.

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

Specified by:
learn in interface Learner
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.

Specified by:
learn in interface Learner
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