public class SpectralChannelFormat extends java.lang.Object implements ChannelFormat
It implements the ChannelFormat interface
Modifier and Type | Field and Description |
---|---|
java.lang.String |
channelName
The name for this channel
|
boolean |
narrow
Indicates whether the data represent a narrow bandwidth derived from a full-band spectrum in the given dimension
dim..
|
int |
numberOfPoints
The number of points contained within this spectral representation.
|
int |
samplingRate
The sampling rate specified as a integer.
|
boolean |
twoSided
Variable indicating whether the data are stored as a two-sided transform, i.e. containing both the
positive and negative frequency data.
|
Constructor and Description |
---|
SpectralChannelFormat()
Creates an SpectralChannelFormat Object with default values
|
SpectralChannelFormat(int srate,
int numberOfPoints,
boolean twoSided,
boolean narrow)
Creates an SpectralChannelFormat Object with a given sampling rate and sample size (in bits) It formats the audio
to the default PCM, names the chanel Audio.
|
SpectralChannelFormat(int srate,
int numberOfPoints,
boolean twoSided,
boolean narrow,
java.lang.String chanName)
Creates an SpectralChannelFormat Object with a given sampling rate and sample size (in bits) It formats the audio
to the default PCM, names the chanel Audio.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getChannelName() |
double |
getFrequencyResolution()
Returns the frequency resolution of the data associated with the independent variable indexed by the given value
of dim, i.e. the step in frequency from one data point to the next.
|
double |
getLowerFrequencyBound()
Returns the (non-negative) value of the lowest frequency in the frequency band held in the object, for the given
dimension dim.
|
int |
getOriginalN()
Returns the number of points in the data set whose transform could have led to the present data, or equivalently
the number of points in the two-sided full-bandwidth spectrum from which the present spectrum could have been
derived.
|
int |
getPoints() |
int |
getSamplingRate() |
double |
getUpperFrequencyBound()
Returns the (non-negative) value of the highest frequency in the frequency band held in the object, for the given
dimension dim.
|
boolean |
isNarrow()
Returns true if the data represent a narrow bandwidth derived from a full-band spectrum in the given
dimension dim..
|
boolean |
isTwoSided()
Returns true if the data are stored as a two-sided transform, i.e. containing both the positive and
negative frequency data.
|
void |
setFromString(java.lang.String str)
Initialises this AudioChannelFormat object from the given string
|
java.lang.String |
toString() |
public int samplingRate
public int numberOfPoints
public java.lang.String channelName
public boolean twoSided
public boolean narrow
public SpectralChannelFormat()
public SpectralChannelFormat(int srate, int numberOfPoints, boolean twoSided, boolean narrow, java.lang.String chanName)
public SpectralChannelFormat(int srate, int numberOfPoints, boolean twoSided, boolean narrow)
public double getFrequencyResolution()
public java.lang.String getChannelName()
getChannelName
in interface ChannelFormat
public int getSamplingRate()
getSamplingRate
in interface ChannelFormat
public boolean isTwoSided()
public int getOriginalN()
public int getPoints()
public boolean isNarrow()
public double getLowerFrequencyBound()
public double getUpperFrequencyBound()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in interface ChannelFormat
toString
in class java.lang.Object
public void setFromString(java.lang.String str)
setFromString
in interface ChannelFormat