Calculate() public method

Calculated as base 2 logarithm of multiplication of intervals between nearest elements in congeneric sequence.
public Calculate ( Chain chain, Link link ) : double
chain Chain /// Source sequence. ///
link Link /// Link of intervals in chain. ///
return double
        /// <summary>
        /// The calculate depth.
        /// </summary>
        public void CalculateDepth()
        {
            var calculator = new Depth();
            AvgDepth = calculator.Calculate(MakeNewChain(), Link.End);

            for (int i = 0; i < PLex.Capacity; i++)
            {
                PLex.Data[i].Depth = calculator.Calculate(MakeNewChain().CongenericChain(i), Link.End);
            }
        }