public class Linspace extends Object
| Constructor and Description |
|---|
Linspace() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
genLinspace(double from,
double to,
double step)
Generate linspace with given step (delta)
|
static double[] |
genLinspace(double from,
double to,
int length)
Generates linspace
|
static double[] |
genLinspaceSym(double from,
double to,
double step)
Generates symetric linspace for given step(delta).
|
static double[] |
genLinspaceSym(double from,
double to,
int length)
Generates symetric linspace -- values are symmetric around the central value.
|
public static double[] genLinspace(double from,
double to,
int length)
from - -- starting point in the sequenceto - -- ending point in the sequencelength - -- the length of the output sequencepublic static double[] genLinspace(double from,
double to,
double step)
from - to - step - public static double[] genLinspaceSym(double from,
double to,
int length)
from - -- starting point in the sequenceto - -- ending point in the sequencelength - -- the length of the output sequencepublic static double[] genLinspaceSym(double from,
double to,
double step)
from - to - step - Copyright © 2020. All rights reserved.