예제 #1
0
 public static double[] Interval(this NumericRange range, double stepSize)
 {
     return(Interval(range.Min, range.Max, stepSize));
 }
예제 #2
0
 /// <summary>
 ///   Creates an interval vector (like NumPy's linspace function).
 /// </summary>
 ///
 /// <remarks>
 /// <para>
 ///   The Range methods should be equivalent to NumPy's np.linspace function. For
 ///   a similar method that accepts a step size instead of a number of steps, see
 ///   <see cref="Vector.Range(int, int)"/>.</para>
 /// </remarks>
 ///
 /// <seealso cref="Vector.Range(int, int)"/>
 ///
 public static double[] Interval(this NumericRange range, int steps)
 {
     return(Interval(range.Min, range.Max, steps));
 }