org.itc.irst.tcc.sre.data
Class ExampleSet
java.lang.Object
org.itc.irst.tcc.sre.data.ExampleSet
- All Implemented Interfaces:
- ExampleSetReader, ExampleSetWriter
- Direct Known Subclasses:
- SentenceSet, VectorSet
public abstract class ExampleSet
- extends java.lang.Object
- implements ExampleSetReader, ExampleSetWriter
TO DO
- Since:
- 1.0
- Version:
- %I%, %G%
- Author:
- Claudio Giuliano
Field Summary |
private java.util.List |
classes
|
private FreqSet |
freq
|
private java.util.List |
identifiers
|
private java.util.List |
instances
|
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the
Logger instance named ExampleSet . |
Method Summary |
void |
add(java.lang.Object x,
java.lang.Object y,
java.lang.Object id)
|
void |
addAll(ExampleSet data)
Appends all of the elements in the specified example set
to the end of this example set. |
java.lang.Object[] |
classArray()
|
java.util.Iterator |
classes()
|
int |
classFreq(java.lang.Object y)
|
void |
clear()
|
abstract ExampleSet |
copy()
Returns a copy of this ExampleSet instance |
int |
getClassCount()
|
java.lang.Object |
id(int i)
|
int |
size()
|
java.lang.String |
toString()
|
java.lang.Object |
x(int i)
|
java.lang.Object |
y(int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
- Define a static logger variable so that it references the
Logger instance named
ExampleSet
.
instances
private java.util.List instances
identifiers
private java.util.List identifiers
classes
private java.util.List classes
freq
private FreqSet freq
ExampleSet
public ExampleSet()
clear
public void clear()
x
public java.lang.Object x(int i)
id
public java.lang.Object id(int i)
y
public java.lang.Object y(int i)
size
public int size()
add
public void add(java.lang.Object x,
java.lang.Object y,
java.lang.Object id)
addAll
public void addAll(ExampleSet data)
- Appends all of the elements in the specified example set
to the end of this example set.
- Parameters:
data
- example set whose elements are to be added
to this example set.
classArray
public java.lang.Object[] classArray()
classes
public java.util.Iterator classes()
classFreq
public int classFreq(java.lang.Object y)
getClassCount
public int getClassCount()
copy
public abstract ExampleSet copy()
- Returns a copy of this ExampleSet instance
- Returns:
- a copy of this example set.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object