public class ConditionalCount extends BasicFeature implements InterfaceOneColumn
Modifier and Type | Class and Description |
---|---|
static class |
ConditionalCount.TestPolicy
TestPolicy controls the kind of test the
Kernel performs
on the threshold . |
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_THRESHOLD |
static java.lang.String |
GUI_NAME |
static boolean |
IS_SINGLE_COLUMN |
static int |
NR_EXTRA_FIELDS |
static java.lang.String |
SHORT_NAME |
DEFAULT_OOB_POLICY
Constructor and Description |
---|
ConditionalCount(int windowSize,
double jumpPercentage) |
Modifier and Type | Method and Description |
---|---|
double[] |
applyTo(long[] theTimestamps,
double[] theInput,
int delay) |
java.lang.String |
getGuiText() |
java.lang.String |
getInfo() |
boolean |
getIsSingleColumn() |
int |
getNrExtraFields() |
java.lang.String |
getShortText() |
ConditionalCount |
setTestPolicy(ConditionalCount.TestPolicy theTestPolicy)
Sets the TestPolicy to be used by this kernel.
|
ConditionalCount |
setThreshold(double theThreshold)
Sets the
threshold used by this Kernel to
determine whether a value is set to either 0 or
1 , based on the TestPolicy . |
java.lang.String |
toString()
Returns the
String representation of this
Feature . |
getValidJump, isValidWidth, setOutOfBoundsPolicy
public static final java.lang.String GUI_NAME
public static final java.lang.String SHORT_NAME
public static final boolean IS_SINGLE_COLUMN
public static final int NR_EXTRA_FIELDS
public static final double DEFAULT_THRESHOLD
public ConditionalCount setTestPolicy(ConditionalCount.TestPolicy theTestPolicy)
theTestPolicy
- The new TestPolicy
to use.Kernel
.ConditionalCount.TestPolicy
public ConditionalCount setThreshold(double theThreshold)
threshold
used by this Kernel
to
determine whether a value is set to either 0
or
1
, based on the TestPolicy
.theThreshold
- The threshold
to use.Kernel
.ConditionalCount.TestPolicy
public double[] applyTo(long[] theTimestamps, double[] theInput, int delay)
applyTo
in interface InterfaceOneColumn
public java.lang.String getGuiText()
getGuiText
in class BasicFeature
public java.lang.String getShortText()
getShortText
in class BasicFeature
public boolean getIsSingleColumn()
getIsSingleColumn
in class BasicFeature
public int getNrExtraFields()
getNrExtraFields
in class BasicFeature
public java.lang.String toString()
String
representation of this
Feature
.
In order the items between the braces represent the:
width
, jump
, OutOfBoundsPolicy
, threshold
and TestPolicy
used for this
Feature
.toString
in class BasicFeature
String
representation of this
Feature
.public java.lang.String getInfo()