CSJ2K.j2k.entropy.encoder.EBCOTRateAllocator.getSlopeFromSIndex C# (CSharp) Method

getSlopeFromSIndex() private static method

Returns the minimum slope value associated with a summary table index. This minimum slope is just 2^(index-RD_SUMMARY_OFF).
private static getSlopeFromSIndex ( int index ) : float
index int The summary index value. /// ///
return float
        private static float getSlopeFromSIndex(int index)
        {
            //UPGRADE_WARNING: Data types in Visual C# might be different.  Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
            return (float) System.Math.Pow(2, (index - RD_SUMMARY_OFF));
        }