Esempio n. 1
0
 /// <summary>
 /// Copies the computed predictors into a buffer starting from the specified position.
 /// </summary>
 /// <param name="buffer">The buffer.</param>
 /// <param name="idx">The zero-based starting position.</param>
 /// <returns>The number of copied values.</returns>
 public int CopyPredictorsTo(double[] buffer, int idx)
 {
     if (_predictorsProvider == null)
     {
         return(0);
     }
     else
     {
         return(_predictorsProvider.CopyPredictorsTo(buffer, idx));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Copies values of enabled predictors to a given buffer starting from specified position (idx)
 /// </summary>
 /// <param name="predictors">Buffer where to be copied enabled predictors</param>
 /// <param name="idx">Starting position index</param>
 public int CopyPredictorsTo(double[] predictors, int idx)
 {
     if (_predictors == null)
     {
         return(0);
     }
     else
     {
         return(_predictors.CopyPredictorsTo(predictors, idx));
     }
 }