edu.udo.cs.yale.tools.math
Class Peak
java.lang.Object
edu.udo.cs.yale.tools.math.Peak
- All Implemented Interfaces:
- java.lang.Comparable<Peak>
public class Peak
- extends java.lang.Object
- implements java.lang.Comparable<Peak>
A peak with a index and a value. The compare method returns 1 for the peak
with higher value.
- Version:
- $Id: Peak.java,v 1.9 2006/08/03 14:39:34 ingomierswa Exp $
- Author:
- Ingo Mierswa
Constructor Summary |
Peak(double index,
double magnitude)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
index
private double index
magnitude
private double magnitude
Peak
public Peak(double index,
double magnitude)
getIndex
public double getIndex()
getMagnitude
public double getMagnitude()
compareTo
public int compareTo(Peak p)
- Specified by:
compareTo
in interface java.lang.Comparable<Peak>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2006