edu.udo.cs.yale.tools.math.som
Class RandomDataContainer

java.lang.Object
  extended by edu.udo.cs.yale.tools.math.som.RandomDataContainer
All Implemented Interfaces:
KohonenTrainingsData

public class RandomDataContainer
extends java.lang.Object
implements KohonenTrainingsData

The RandomDataContainer is an implementation of the KohonenTrainingsData interface, and therefor provides examples of data for a KohonenNet. The data is returned to the KohonenNet via an iterator, which shuffels the data examples.

Version:
$Id$
Author:
Sebastian Land

Field Summary
private  java.util.Vector<double[]> data
           
private  java.util.BitSet flag
           
private  java.util.Random generator
           
 
Constructor Summary
RandomDataContainer()
           
 
Method Summary
 void addData(double[] data)
           
 int countData()
           
 double[] get(int index)
           
 double[] getNext()
           
 void reset()
           
 void setRandomGenerator(java.util.Random generator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private java.util.Vector<double[]> data

generator

private java.util.Random generator

flag

private java.util.BitSet flag
Constructor Detail

RandomDataContainer

public RandomDataContainer()
Method Detail

addData

public void addData(double[] data)

countData

public int countData()
Specified by:
countData in interface KohonenTrainingsData

getNext

public double[] getNext()
Specified by:
getNext in interface KohonenTrainingsData

reset

public void reset()
Specified by:
reset in interface KohonenTrainingsData

setRandomGenerator

public void setRandomGenerator(java.util.Random generator)
Specified by:
setRandomGenerator in interface KohonenTrainingsData

get

public double[] get(int index)
Specified by:
get in interface KohonenTrainingsData


Copyright © 2001-2006