|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.util.Filters.RandomFilter<E>
public static class Filters.RandomFilter<E>
A filter that accepts a random fraction of the input it sees.
| Constructor Summary | |
|---|---|
Filters.RandomFilter()
|
|
Filters.RandomFilter(double fraction)
|
|
Filters.RandomFilter(double fraction,
java.util.Random random)
|
|
| Method Summary | |
|---|---|
boolean |
accept(E o)
Checks if the given object passes the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Filters.RandomFilter()
public Filters.RandomFilter(double fraction)
public Filters.RandomFilter(double fraction,
java.util.Random random)
| Method Detail |
|---|
public boolean accept(E o)
Filter
accept in interface Filter<E>o - an object to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||