Package es.upm.etsisi.cf4j.util
Class Range
- java.lang.Object
-
- es.upm.etsisi.cf4j.util.Range
-
public class Range extends Object
This class contains methods to generate array of values based on a range
-
-
Constructor Summary
Constructors Constructor Description Range()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]
ofDoubles(double from, double step, int numValues)
Creates a range of double valuesstatic int[]
ofIntegers(int from, int step, int numValues)
Creates a range of int values
-
-
-
Method Detail
-
ofIntegers
public static int[] ofIntegers(int from, int step, int numValues)
Creates a range of int values- Parameters:
from
- Initial valuestep
- Step sizenumValues
- Number of values of the range- Returns:
- Int array with the range
-
ofDoubles
public static double[] ofDoubles(double from, double step, int numValues)
Creates a range of double values- Parameters:
from
- Initial valuestep
- Step sizenumValues
- Number of values of the range- Returns:
- Double array with the range
-
-