Beispiel #1
0
        // -------------------------------------------------------------------------------------
        //                              !!! PUBLIC METHODS !!!
        // -------------------------------------------------------------------------------------

        /// <summary>
        /// normalizes given weights object, such that sum of all parameters is 1
        /// </summary>
        /// <param name="myWeights"></param>
        public static void normalize(weights myWeights)
        {
            myWeights.normalize();
        }
Beispiel #2
0
 /// <summary>
 /// checks whether sum of weights is 1, if it is, then
 /// weights object is said to be normal, true is returned, else false
 /// </summary>
 /// <param name="myWeights"></param>
 /// <param name="sum_weigths">sum of all weights</param>
 /// <returns></returns>
 public static bool is_normal(weights myWeights, out double sum_weigths)
 {
     return(myWeights.is_normal(out sum_weigths));
 }