Example #1
0
        private void updateScores(float[] array)
        {
            int num  = array.Length;
            int num2 = this.numStreams;
            int num3 = (num2 != -1) ? (num / num2) : (-num);

            float[] array2 = new float[num3];
            for (int i = 0; i < this.numStreams; i++)
            {
                ByteCodeHelper.arraycopy_primitive_4(array, i * num3, array2, 0, num3);
                PrunableMixtureComponent[] array3 = (PrunableMixtureComponent[])this.components.get(i);
                int num4 = array3.Length;
                for (int j = 0; j < num4; j++)
                {
                    PrunableMixtureComponent prunableMixtureComponent = array3[j];
                    prunableMixtureComponent.updateScore(array2);
                }
            }
        }
Example #2
0
        private void updateTopScores(float[] array)
        {
            int num  = array.Length;
            int num2 = this.numStreams;
            int num3 = (num2 != -1) ? (num / num2) : (-num);

            float[] array2 = new float[num3];
            for (int i = 0; i < this.numStreams; i++)
            {
                ByteCodeHelper.arraycopy_primitive_4(array, i * num3, array2, 0, num3);
                PrunableMixtureComponent[] array3 = (PrunableMixtureComponent[])this.topComponents.get(i);
                PrunableMixtureComponent[] array4 = (PrunableMixtureComponent[])this.components.get(i);
                PrunableMixtureComponent[] array5 = array3;
                int num4 = array5.Length;
                int j;
                for (j = 0; j < num4; j++)
                {
                    PrunableMixtureComponent prunableMixtureComponent = array5[j];
                    prunableMixtureComponent.updateScore(array2);
                }
                Arrays.sort(array3, this.componentComparator);
                float partialScore = array3[0].getPartialScore();
                PrunableMixtureComponent[] array6 = array4;
                j = array6.Length;
                for (int k = 0; k < j; k++)
                {
                    PrunableMixtureComponent prunableMixtureComponent2 = array6[k];
                    if (!this.isInTopComponents(array3, prunableMixtureComponent2))
                    {
                        if (prunableMixtureComponent2.isTopComponent(array2, partialScore))
                        {
                            this.insertTopComponent(array3, prunableMixtureComponent2);
                            partialScore = array3[0].getPartialScore();
                        }
                    }
                }
            }
        }