natix.CompactDS.SArray.Log_N_over_M C# (CSharp) Method

Log_N_over_M() public static method

public static Log_N_over_M ( int n, int m ) : byte
n int
m int
return byte
        public static byte Log_N_over_M(int n, int m)
        {
            return (byte)Math.Ceiling( Math.Log(n * 1.0 / m, 2) );
        }