Esempio n. 1
0
 private void storeScores(MixtureComponentSetScores mixtureComponentSetScores)
 {
     this.storedScores.add(mixtureComponentSetScores);
     while (this.storedScores.size() > this.scoresQueueLen)
     {
         this.storedScores.poll();
     }
 }
Esempio 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);
        }
Esempio 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);
        }