for (int i = 0; i < numChunks; i++)
{
double feature = 0.0;
EDLChunk edlC = (EDLChunk)edlFile.chunks.get(i);
FeatChunk fC = (FeatChunk)featFile.chunks.get(i);
for (int j = 0; j < featureSize; j++)
{
if (featureNumber == -1)
feature = fC.length;
else
{
double[] featureArray = featFile.getFeatureByName(featureName, i);
feature = featureArray[j];
}
if (feature < lowestValue)
lowestValue = feature;
if (feature > highestValue)
highestValue = feature;
if (edlC.dstTime < firstEventTime)
firstEventTime = edlC.dstTime;
if (edlC.dstTime > lastEventTime)
lastEventTime = edlC.dstTime;
if (edlC.dstTime + edlC.length > endTime)
endTime = edlC.dstTime + edlC.length;
}
}
//add chunks to events in new EDL order
//System.out.println("adding chunks from FeatFile...");
for (int i = 0; i < numChunks; i++)
{
EDLChunk edlC = (EDLChunk)edlFile.chunks.get(i);
double sT = edlC.startTime;
int matchChunkNum = -1;