edu.mit.sketch.system.data
Class BalanceFilter
java.lang.Object
edu.mit.sketch.system.data.DataFilter
edu.mit.sketch.system.data.BalanceFilter
public class BalanceFilter
- extends DataFilter
Creates a list of objects that contains an equal number of each type.
the items are pseudorandomly selected, so that we can repeat results.
|
Constructor Summary |
BalanceFilter(java.util.List types,
int size,
long seed)
|
|
Method Summary |
java.util.List |
filter(java.util.List strokeSets)
transform the strokes list to contain only the things
you want to calculate feature for (in the format that the feature
calculator expects). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BalanceFilter
public BalanceFilter(java.util.List types,
int size,
long seed)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
filter
public java.util.List filter(java.util.List strokeSets)
- Description copied from class:
DataFilter
- transform the strokes list to contain only the things
you want to calculate feature for (in the format that the feature
calculator expects).
Takes in a list of strokesets and returns a new list of strokesets
- Specified by:
filter in class DataFilter