Package | Description |
---|---|
be.tarsos.sampled.pitch |
Contains internal and external pitch trackers.
|
be.tarsos.util.histogram |
Histogram and histogram correlation classes.
|
be.tarsos.util.histogram.peaks |
Peak extraction from histograms.
|
Modifier and Type | Method and Description |
---|---|
static Histogram |
PitchFunctions.createFrequencyTable(java.util.List<java.lang.Double> values,
double classWidth,
double start,
double stop)
Creates a frequency table.
|
static Histogram |
PitchFunctions.readFrequencyTable(java.lang.String fileName)
Reads a frequency table (histogram) from disk.
|
Modifier and Type | Method and Description |
---|---|
static void |
PitchFunctions.exportFrequencyTable(Histogram histogram,
java.lang.String fileName) |
static void |
PitchFunctions.exportFrequencyTable(Histogram histogram,
java.lang.String fileName,
double start,
double stop) |
Modifier and Type | Class and Description |
---|---|
class |
PitchClassHistogram |
class |
PitchHistogram
The PitchHistogram accepts values from 0 to 9600 cents or +- from 16Hz to
40000Hz: the human hearing range is completely covered.
The start and stop values can be configured. Values outside the defined range are ignored! |
Modifier and Type | Method and Description |
---|---|
Histogram |
Histogram.add(double value)
Adds a value to the Histogram.
|
Histogram |
Histogram.add(Histogram other)
Calculates the sum of two histograms.
|
Histogram |
Histogram.add(Histogram other,
int offset)
Calculates the sum of two histograms.
|
Histogram |
Histogram.addToEachBin(long value)
Adds a number of items to each bin.
|
Histogram |
Histogram.baselineHistogram()
Searches the minimum number of items in a bin and subtracts all bins with
this value.
|
Histogram |
Histogram.clone() |
Histogram |
Histogram.gaussianSmooth(double standardDeviation)
Smooth the histogram using Gaussians.
|
Histogram |
Histogram.invert()
Inverts this histograms.
|
Histogram |
Histogram.max(Histogram other)
Takes the maximum of the bin value in each histogram and changes the
current histogram to this maximum value.
|
static Histogram |
Histogram.mean(java.util.List<Histogram> histograms)
Calculates a histogram mean of a list of histograms.
|
Histogram |
Histogram.multiply(double factor)
Multiplies each class (bin) count with a factor.
|
Histogram |
Histogram.normalize()
Normalizes the peaks in a histogram.
|
Histogram |
Histogram.raise(double exponent)
Raises each class count to the power of exponent.
|
Histogram |
Histogram.smooth(boolean isWeighted,
int k)
Computes a smoothed version of the histogram.
|
Histogram |
Histogram.subtract(Histogram other)
Subtracts two histograms.
|
Modifier and Type | Method and Description |
---|---|
Histogram |
Histogram.add(Histogram other)
Calculates the sum of two histograms.
|
Histogram |
Histogram.add(Histogram other,
int offset)
Calculates the sum of two histograms.
|
double |
Histogram.correlation(Histogram otherHistogram)
Return the correlation of this histogram with another one.
|
double |
Histogram.correlation(Histogram otherHistogram,
CorrelationMeasure correlationMeasure)
Return the correlation of this histogram with another one.
|
double |
CityBlockDistance.correlation(Histogram thisHistogam,
int displacement,
Histogram otherHistogram) |
double |
CrossCorrelation.correlation(Histogram thisHistogam,
int displacement,
Histogram otherHistogram) |
double |
BhattacharyaDistance.correlation(Histogram first,
int displacement,
Histogram second) |
double |
Intersection.correlation(Histogram thisHistogram,
int displacement,
Histogram otherHistogram) |
double |
EuclideanDistance.correlation(Histogram thisHistogam,
int displacement,
Histogram otherHistogram) |
double |
HistogramCorrelation.correlation(Histogram thisHistogram,
int displacement,
Histogram otherHistogram)
The implementation of a histogram correlation or distance measure.
|
double |
Histogram.correlationWithDisplacement(int displacement,
Histogram otherHistogram) |
double |
Histogram.correlationWithDisplacement(int displacement,
Histogram otherHistogram,
CorrelationMeasure correlationMeasure) |
int |
Histogram.displacementForOptimalCorrelation(Histogram otherHistogram) |
int |
Histogram.displacementForOptimalCorrelation(Histogram otherHistogram,
CorrelationMeasure correlationMeasure)
Returns the number of classes the other histogram needs to be displaced
to get optimal correlation with this histogram.
|
Histogram |
Histogram.max(Histogram other)
Takes the maximum of the bin value in each histogram and changes the
current histogram to this maximum value.
|
Histogram |
Histogram.subtract(Histogram other)
Subtracts two histograms.
|
Modifier and Type | Method and Description |
---|---|
static Histogram |
Histogram.mean(java.util.List<Histogram> histograms)
Calculates a histogram mean of a list of histograms.
|
Constructor and Description |
---|
Histogram(Histogram original)
Creates a new, empty histogram using the same parameters of the original
histogram.
|
Modifier and Type | Method and Description |
---|---|
static Histogram |
PeakDetector.newPeakDetection(java.util.List<Peak> peaks)
Create a histogram with peak information.
|
Modifier and Type | Method and Description |
---|---|
static double |
PeakDetector.calculateLocalHeightScore(Histogram histogram,
int index,
int windowSize)
The local height score defines a measure for the height of a peak within
a window.
|
static java.util.List<Peak> |
PeakDetector.detect(Histogram histogram) |
static java.util.List<Peak> |
PeakDetector.detect(Histogram histogram,
int windowSize,
int thresholdFactor) |
java.util.List<Peak> |
PeakDetector.PeakDetectionStrategy.detect(Histogram histogram,
int windowSize,
int thresholdFactor) |
static java.util.List<Peak> |
PeakDetector.detectNumberOfPeaks(Histogram histogram,
int numberOfPeaks)
Finds the requested number of (most salient) peaks in the histogram.
|