|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.StorageManager marf.Classification.Classification marf.Classification.Distance.Distance marf.Classification.Distance.HammingDistance
public class HammingDistance
Hamming Distance Classifier.
$Id: HammingDistance.java,v 1.2 2007/12/31 00:17:04 mokhov Exp $
Field Summary | |
---|---|
protected double |
dAllowedError
|
static double |
DEFAULT_ALLOWED_ERROR
Default allowed difference between two features of 0.01. |
protected int |
iDistanceType
|
static int |
LENIENT_DOUBLE
Indicates to compare double array elements leniently allowing some margin for error. |
static int |
STRICT_BITWISE
Indicates to compare double array for hamming distance in true bitwise expansion (i.e. |
static int |
STRICT_DOUBLE
Indicates to compare double array elements in strict equality (e.h. |
Fields inherited from class marf.Classification.Classification |
---|
adFeatureVector, oFeatureExtraction, oResultSet, oTrainingSet |
Fields inherited from class marf.Storage.StorageManager |
---|
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
Fields inherited from interface marf.Classification.IClassification |
---|
MARF_INTERFACE_CODE_REVISION |
Fields inherited from interface marf.Storage.IStorageManager |
---|
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, MARF_INTERFACE_CODE_REVISION, STORAGE_FILE_EXTENSIONS |
Constructor Summary | |
---|---|
HammingDistance(IFeatureExtraction poFeatureExtraction)
Hamming Distance Constructor. |
Method Summary | |
---|---|
double |
distance(double[] padVector1,
double[] padVector2)
Hamming Distance implementation. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
Methods inherited from class marf.Classification.Distance.Distance |
---|
classify, getResult |
Methods inherited from class marf.Classification.Classification |
---|
classify, clone, dump, getFeatureExtraction, getResultSet, getTrainingSetFilename, loadTrainingSet, restore, setFeatureExtraction, train, train |
Methods inherited from class marf.Storage.StorageManager |
---|
backSynchronizeObject, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, equals, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, getObjectToSerialize, hashCode, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_ALLOWED_ERROR
public static final int STRICT_DOUBLE
public static final int LENIENT_DOUBLE
public static final int STRICT_BITWISE
protected int iDistanceType
protected double dAllowedError
Constructor Detail |
---|
public HammingDistance(IFeatureExtraction poFeatureExtraction)
poFeatureExtraction
- FeatureExtraction module referenceMethod Detail |
---|
public final double distance(double[] padVector1, double[] padVector2)
distance
in class Distance
padVector1
- first vector to comparepadVector2
- second vector to compare
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |