public abstract class RealFeature extends Feature
double
.containingPackage, generatingClassifier
Modifier | Constructor and Description |
---|---|
protected |
RealFeature()
For internal use only.
|
|
RealFeature(String p,
String c)
Sets both the identifier and the value.
|
Modifier and Type | Method and Description |
---|---|
Feature |
conjunction(Feature f,
Classifier c)
Create a feature representing the conjunction of this feature with the given argument
feature.
|
ByteString |
getByteStringValue()
Gives a string representation of the value of this feature.
|
String |
getStringValue()
Gives a string representation of the value of this feature.
|
boolean |
isDiscrete()
Determines if this feature is discrete.
|
RealFeature |
makeReal()
Simply returns this object.
|
abstract RealFeature |
multiply(double m)
Returns a new feature object, the same as this one in all respects except the value has been
multiplied by the specified number.
|
boolean |
valueEquals(String v)
Determines whether or not the parameter is equivalent to the string representation of the
value of this feature.
|
childLexiconLookup, classEquivalent, clone, compareNameStrings, compareTo, conjunctWith, conjunctWith, depth, encode, equals, fromArray, getByteStringIdentifier, getFeatureKey, getFeatureKey, getGeneratingClassifier, getPackage, getStrength, getStringIdentifier, getValueIndex, hasByteStringIdentifier, hashCode, hasStringIdentifier, isConjunctive, isPrimitive, isReferrer, lexRead, lexReadFeature, lexWrite, read, readFeature, removeFromChildLexicon, setArrayLength, toString, toStringNoPackage, totalValues, withStrength, write, write, writeNameString, writeNoPackage
public boolean isDiscrete()
isDiscrete
in class Feature
true
iff this is discrete.public String getStringValue()
getStringValue
in class Feature
null
, since real features don't have string values.public ByteString getByteStringValue()
getByteStringValue
in class Feature
null
, since real features don't have string values.public boolean valueEquals(String v)
valueEquals
in class Feature
v
- The string to compare against.false
, since real features don't have string values.public RealFeature makeReal()
public abstract RealFeature multiply(double m)
m
- The multiplier.public Feature conjunction(Feature f, Classifier c)
conjunction
in class Feature
f
- The feature to conjunct with.c
- The classifier producing the resulting feature.f
.Copyright © 2016. All rights reserved.