public class BasicFeature
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static OutOfBoundsPolicy |
DEFAULT_OOB_POLICY |
static java.lang.String |
GUI_NAME |
static boolean |
IS_SINGLE_COLUMN |
static int |
NR_EXTRA_FIELDS |
static java.lang.String |
SHORT_NAME |
| Constructor and Description |
|---|
BasicFeature(int theWidth,
double theJumpPercentage)
The variable "jump" represents the percentage of the window to be
skipped in the next extraction of features.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGuiText() |
boolean |
getIsSingleColumn() |
int |
getNrExtraFields() |
java.lang.String |
getShortText() |
double |
getValidJump(double theJumpPercentage) |
boolean |
isValidWidth(int theWidth)
Indicates whether
theWidth parameter is a valid width for
this Kernel. |
BasicFeature |
setOutOfBoundsPolicy(OutOfBoundsPolicy thePolicy)
Sets the new
OutOfBoundsPolicy. |
java.lang.String |
toString()
Returns the
String representation of this
Feature. |
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 OutOfBoundsPolicy DEFAULT_OOB_POLICY
public BasicFeature(int theWidth,
double theJumpPercentage)
public BasicFeature setOutOfBoundsPolicy(OutOfBoundsPolicy thePolicy)
OutOfBoundsPolicy.
The OutOfBoundsPolicy controls the value used in the
array returned by the applyTo method, for those
values in the input array to which no whole Kernel could
be applied.thePolicy - The OutOfBoundsPolicy to use.Feature on which this method is called.OutOfBoundsPolicypublic boolean isValidWidth(int theWidth)
theWidth parameter is a valid width for
this Kernel.
Note: BasicKernels accept only odd widths > 0. Some
Kernels may use even widths, they can override this method.
However, they should then also override the applyTo
method.theWidth - TheWidth to test.true if theWidth parameter is a valid
width for this Kernel, false otherwise.#applyTopublic double getValidJump(double theJumpPercentage)
public java.lang.String getGuiText()
public java.lang.String getShortText()
public boolean getIsSingleColumn()
public int getNrExtraFields()
public java.lang.String toString()
String representation of this
Feature.
It includes the width and jump percentage.toString in class java.lang.ObjectString representation of this
Feature.