All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sim.data.RemoteTable

java.lang.Object
   |
   +----sim.data.Data
           |
           +----sim.data.RemoteTable

public class RemoteTable
extends Data
This allows the user to specify a remote data file that contains data records. This data file is then used to create input/output vectors to be used for training a arbitrary function approximators including neural networks. The attributes of each record do not have to be scalar numbers. Attributes can be binary, doubles, floats, integers, characters, words, and strings.

This code is (c) 1997 Mance E. Harmon <mharmon@acm.org>, http://eureka1.aa.wpafb.af.mil
The source and object code may be redistributed freely. If the code is modified, please state so in the comments.

Version:
1.1, 15 Jan 98
Author:
Mance E. Harmon, Leemon Baird

Constructor Index

 o RemoteTable()

Method Index

 o BNF(int)
 o getData(int, Matrix, Matrix)
Put the nth input/output pair into arrays in/out.
 o getData(Matrix, Matrix, Random)
Put the input/output pair into arrays in/out.
 o parse(Parser, int)
Parse the input file to get the parameters for this object.
 o unparse(Unparser, int)
Output a description of this object that can be parsed with parse().

Constructors

 o RemoteTable
 public RemoteTable()

Methods

 o getData
 public void getData(Matrix in,
                     Matrix out,
                     Random rnd) throws MatrixException
Put the input/output pair into arrays in/out. The arrays must already have been initialized to the right sizes. A randomly-chosen data point will be returned.

Throws: MatrixException
vectors were the wrong size
Overrides:
getData in class Data
 o getData
 public void getData(int n,
                     Matrix in,
                     Matrix out) throws MatrixException
Put the nth input/output pair into arrays in/out. The arrays must already have been initialized to the right sizes. An exception is raised if n<0 or n>=nPairs. If number of pairs is infinite, then exception is always thrown.

Throws: MatrixException
vectors were the wrong size or there is no "nth" data item
Overrides:
getData in class Data
 o BNF
 public String BNF(int lang)
Overrides:
BNF in class Data
 o unparse
 public void unparse(Unparser u,
                     int lang)
Output a description of this object that can be parsed with parse().

Overrides:
unparse in class Data
See Also:
Parsable
 o parse
 public Object parse(Parser p,
                     int lang) throws ParserException
Parse the input file to get the parameters for this object.

Throws: ParserException
parser didn't find the required token
Overrides:
parse in class Data

All Packages  Class Hierarchy  This Package  Previous  Next  Index