예제 #1
0
        /// <summary>
        /// Calculates the normalized contrast angle dot-product or 1 - angle/90 between two vectors,
        /// with both normalized to a unit vector first.
        /// </summary>
        /// <param name="s">The other vector</param>
        /// <returns>Normalized contrast angle dot-product of normalized vectors</returns>
        public double NormalizedContrastAngleUnitVector(Statistics s)
        {
            var stat1 = NormalizeUnit();
            var stat2 = s.NormalizeUnit();

            return stat1.NormalizedContrastAngle(stat2);
        }