ridgeplot.stats
scaling(x)
scaling a vector to a range between 0 and 1
Example
>>> scaling([1,2,3,4])
array([0. , 0.33333333, 0.66666667, 1. ])
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
List[float]
|
list of data values (float) |
required |
Returns:
Type | Description |
---|---|
NDArray[float64]
|
An numpy array of the scaled values |
Source code in src/ridgeplot/stats.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|