|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprojectpossibility.DFTpair
public class DFTpair
DFTpair stores an amplitude and frequency like coordinates of a wave in the frequency domain
| Constructor Summary | |
|---|---|
DFTpair(double f,
double a)
The constructor for the DFTpair takes in parameters frequency and amplitude, denoted by f and a. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object arg0)
|
double |
getAmp()
|
double |
getFreq()
|
void |
setAmp(double amp)
Sets the pair's amplitude to the value of amp. |
void |
setFreq(double freq)
Sets the pair's frequency to the desired value |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DFTpair(double f,
double a)
f - frequency calculateda - amplitude from original wave form| Method Detail |
|---|
public double getAmp()
public void setAmp(double amp)
amp - desired amplitude valuepublic double getFreq()
public void setFreq(double freq)
freq - desired value of frequencypublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||