コード例 #1
0
 public override void SetUncertaintyThreshold(params double[] thresh)
 {
     // set only the first threshold of each map
     if (thresh.Length != onlineBayes.Length)
     {
         throw new ArgumentException("threshold length does not match number of internal mappers");
     }
     for (int i = 0; i < onlineBayes.Length; i++)
     {
         OnlineVectorMapper map = onlineBayes[i];
         double[]           t   = map.GetUncertaintyThreshold();
         t[0] = thresh[i];
         map.SetUncertaintyThreshold(t);
     }
 }
コード例 #2
0
 protected OnlineDistMapper(OnlineVectorMapper suffMapper,
                            DistBuilder <T> distBuilder)
     : base(suffMapper, distBuilder)
 {
 }