|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Equality public static interface SpectrogramPlotter.ChannelGrid
Defines the spectrum frequency channels. These are assumed the same for every spectrum in the spectrogram (every X coordinate). Each channel has an index (0..channelCount-1) and a lower and upper Y (spectral) axis bound. Typically the upper bound of channel i will be the lower bound of channel i+1, but this is not enforced. It is expected, though not enforced, that channel bound pairs are monotonically increasing with channel index.
Method Summary | |
---|---|
void |
getChannelBounds(int ichan,
double[] ybounds)
Reports the upper and lower Y (spectral) bounds for a given channel. |
int |
getChannelCount()
Returns the number of channels if known. |
int[] |
getChannelRange(double ylo,
double yhi)
Returns the range of channel indices which are completely or partially covered in a given range of Y (spectral) values. |
Method Detail |
---|
int getChannelCount()
int[] getChannelRange(double ylo, double yhi)
ylo
- lower bound of Y valueyhi
- upper bound of Y value
void getChannelBounds(int ichan, double[] ybounds)
ichan
- channel indexybounds
- 2-element array, on return contains (lower,upper)
bounds of channel on the Y (spectral) axis
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |