org.encog.util.obj
Class ObjectHolder<T>
java.lang.Object
org.encog.util.obj.ObjectHolder<T>
- Type Parameters:
T
- The type of object to hold.
- All Implemented Interfaces:
- Serializable
public class ObjectHolder<T>
- extends Object
- implements Serializable
Holds an object of the specified type. Used with the ObjectChooser.
Associates an object with a probability.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectHolder
public ObjectHolder(T theObj,
double probability)
getObj
public T getObj()
- Returns:
- the opp
getProbability
public double getProbability()
- Returns:
- the probability
Copyright © 2014. All Rights Reserved.