Back to Numerical Arrays (NumPy)
np.linspace
Create an NDArray with evenly spaced numbers over a specified interval.
Syntax
np.linspace(start, stop, num?, endpoint?, options?)
Description
Create an NDArray with evenly spaced numbers over a specified interval.
Parameters
| Name | Description |
|---|---|
| start | - Start value |
| stop | - End value |
| num(optional) | - Number of samples (default: 50) |
| endpoint(optional) | - Include stop value (default: true) |
| options(optional) | - Optional configuration (dtype) |
Returns
Promise<NDArray>