marf.Classification.Distance
Class ChebyshevDistance
java.lang.Object
  
marf.Storage.StorageManager
      
marf.Classification.Classification
          
marf.Classification.Distance.Distance
              
marf.Classification.Distance.ChebyshevDistance
- All Implemented Interfaces: 
 - java.io.Serializable, java.lang.Cloneable, IClassification, IStorageManager
 
public class ChebyshevDistance
- extends Distance
 
Chebyshev Distance Classifier.
 Also known as Manhattan or City Block distance.>
 $Id: ChebyshevDistance.java,v 1.19 2007/12/31 00:17:04 mokhov Exp $
- Since:
 
  - 0.0.1
 
- Version:
 
  - $Revision: 1.19 $
 
- Author:
 
  - Serguei Mokhov
 
- See Also:
 - Serialized Form
 
 
 
 
 
 
 
| 
Method Summary | 
 double | 
distance(double[] padVector1,
         double[] padVector2)
 
          Chebyshev Distance implementation. | 
static java.lang.String | 
getMARFSourceCodeRevision()
 
          Retrieves class' revision. | 
 
 
| 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 | 
 
ChebyshevDistance
public ChebyshevDistance(IFeatureExtraction poFeatureExtraction)
- ChebyshevDistance Constructor.
- Parameters:
 poFeatureExtraction - FeatureExtraction module reference
 
distance
public final double distance(double[] padVector1,
                             double[] padVector2)
- Chebyshev Distance implementation.
- Specified by:
 distance in class Distance
 
- Parameters:
 padVector1 - first vector to comparepadVector2 - second vector to compare
- Returns:
 - Chebyshev (a.k.a city-block/Manhattan) distance between two feature vectors
 
 
 
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Retrieves class' revision.
- Returns:
 - revision string
 - Since:
 
  - 0.3.0.2