|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.util.histogram.HistogramFactory
public class HistogramFactory
This class creates different kinds of histograms from either a list of annotations or a list of peak positions.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |