Ejemplo n.º 1
0
 private void storeScores(MixtureComponentSetScores mixtureComponentSetScores)
 {
     this.storedScores.add(mixtureComponentSetScores);
     while (this.storedScores.size() > this.scoresQueueLen)
     {
         this.storedScores.poll();
     }
 }
Ejemplo n.º 2
0
        private MixtureComponentSetScores createFromTopGau(long frameStartSample)
        {
            MixtureComponentSetScores mixtureComponentSetScores = new MixtureComponentSetScores(this.numStreams, this.topGauNum, frameStartSample);

            for (int i = 0; i < this.numStreams; i++)
            {
                for (int j = 0; j < this.topGauNum; j++)
                {
                    mixtureComponentSetScores.setScore(i, j, ((PrunableMixtureComponent[])this.topComponents.get(i))[j].getStoredScore());
                    mixtureComponentSetScores.setGauId(i, j, ((PrunableMixtureComponent[])this.topComponents.get(i))[j].getId());
                }
            }
            return(mixtureComponentSetScores);
        }
Ejemplo n.º 3
0
        private MixtureComponentSetScores getStoredScores(long num)
        {
            if (this.storedScores.isEmpty())
            {
                return(null);
            }
            if (((MixtureComponentSetScores)this.storedScores.peekLast()).getFrameStartSample() < num)
            {
                return(null);
            }
            Iterator iterator = this.storedScores.iterator();

            while (iterator.hasNext())
            {
                MixtureComponentSetScores mixtureComponentSetScores = (MixtureComponentSetScores)iterator.next();
                if (mixtureComponentSetScores.getFrameStartSample() == num)
                {
                    return(mixtureComponentSetScores);
                }
            }
            return(null);
        }