public class SpeakerCluster
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.math3.linear.Array2DRowRealMatrix |
featureMatrix |
Constructor and Description |
---|
SpeakerCluster() |
SpeakerCluster(Segment s,
org.apache.commons.math3.linear.Array2DRowRealMatrix featureMatrix,
double bicValue) |
SpeakerCluster(SpeakerCluster c) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
addSegment(Segment s) |
java.util.ArrayList<Segment> |
getArrayOfSegments() |
double |
getBicValue() |
org.apache.commons.math3.linear.Array2DRowRealMatrix |
getFeatureMatrix() |
java.util.TreeSet<Segment> |
getSegments() |
java.util.ArrayList<Segment> |
getSpeakerIntervals()
Returns a 2 * n length array where n is the numbers of intervals assigned
to the speaker modeled by this cluster every pair of elements with
indexes (2 * i, 2 * i + 1) represents the start time and the length for
each interval
We may need a delay parameter to this function because the segments may
not be exactly consecutive
|
void |
mergeWith(SpeakerCluster target) |
java.lang.Boolean |
removeSegment(Segment s) |
void |
setBicValue(double bicValue) |
protected org.apache.commons.math3.linear.Array2DRowRealMatrix featureMatrix
public SpeakerCluster()
public SpeakerCluster(Segment s, org.apache.commons.math3.linear.Array2DRowRealMatrix featureMatrix, double bicValue)
public SpeakerCluster(SpeakerCluster c)
public double getBicValue()
public void setBicValue(double bicValue)
public org.apache.commons.math3.linear.Array2DRowRealMatrix getFeatureMatrix()
public java.util.TreeSet<Segment> getSegments()
public java.util.ArrayList<Segment> getArrayOfSegments()
public java.lang.Boolean addSegment(Segment s)
public java.lang.Boolean removeSegment(Segment s)
public java.util.ArrayList<Segment> getSpeakerIntervals()
public void mergeWith(SpeakerCluster target) throws java.lang.NullPointerException
java.lang.NullPointerException