public class HistogramFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static PitchClassHistogram |
createMaxPitchClassHistogram(java.util.List<Annotation> annotations,
double duration,
TimeUnit unit)
Create a pitch class histogram by taking the maximum number of
annotations for a defined time window.
|
static KernelDensityEstimate |
createPichClassKDE(java.util.List<Annotation> annotations,
double width)
Creates a pitch class
KernelDensityEstimate for a list of annotations. |
static KernelDensityEstimate |
createPichClassKDE(java.util.List<Annotation> annotations,
double width,
double windowDuration)
Creates a pitch class
KernelDensityEstimate for a list of pitches
defined by the annotations. |
static KernelDensityEstimate |
createPichClassKDE(ScalaFile scalaFile,
double width)
Creates a pitch class
KernelDensityEstimate for a list of pitches
defined by a Scala file. |
static PitchClassHistogram |
createPitchClassHistogram(KernelDensityEstimate kde)
Creates a pitch class histogram directly from a list of annotations (without kernels).
|
static PitchClassHistogram |
createPitchClassHistogram(java.util.List<Annotation> annotations)
Creates a pitch class histogram directly from a list of annotations (without kernels).
|
static PitchClassHistogram |
createPitchClassHistogram(java.util.List<Annotation> annotations,
double width)
Create a tone scale histogram using a kernel instead of an ordinary
count.
|
static PitchClassHistogram |
createPitchClassHistogram(ScalaFile scalaFile)
Builds a pitch class histogram using the pitches defined in a scala
file.
|
static PitchHistogram |
createPitchHistogram(java.util.List<Annotation> annotations)
Create a pitch histogram based on a list of annotations.
|
static PitchHistogram |
createPitchHistogram(java.util.List<Annotation> annotations,
double width) |
public static PitchClassHistogram createPitchClassHistogram(java.util.List<Annotation> annotations)
annotations
- The list of annotations.public static PitchClassHistogram createPitchClassHistogram(KernelDensityEstimate kde)
kde
- public static PitchClassHistogram createPitchClassHistogram(java.util.List<Annotation> annotations, double width)
annotations
- A list of annotations.swidth
- The with of the kernel in cents.public static PitchClassHistogram createPitchClassHistogram(ScalaFile scalaFile)
scalaFile
- public static PitchClassHistogram createMaxPitchClassHistogram(java.util.List<Annotation> annotations, double duration, TimeUnit unit)
annotations
- The original list of annotations.duration
- The duration for one window (define in the unit)unit
- The uint for the duration.public static PitchHistogram createPitchHistogram(java.util.List<Annotation> annotations)
annotations
- A list of annotations.public static PitchHistogram createPitchHistogram(java.util.List<Annotation> annotations, double width)
public static KernelDensityEstimate createPichClassKDE(java.util.List<Annotation> annotations, double width)
KernelDensityEstimate
for a list of annotations.annotations
- A list of annotations.width
- The width of the Gaussian kernel.public static KernelDensityEstimate createPichClassKDE(ScalaFile scalaFile, double width)
KernelDensityEstimate
for a list of pitches
defined by a Scala file.scalaFile
- A Scala file, defining a list of pitches.width
- The width of the Gaussian kernel.public static KernelDensityEstimate createPichClassKDE(java.util.List<Annotation> annotations, double width, double windowDuration)
KernelDensityEstimate
for a list of pitches
defined by the annotations.width
- The width of the Gaussian kernel.annotations
- A list of annotations.windowDuration
- The duration for one window in seconds.