Note that not all functions in comath are displayed here, as some require additional packages such as NumPy, which are beyond the scope of this book, or are modified versions of existing math functions:
- array.percentile(sorted_list, percent [, key=lambda x: x]) function returns the desired percentile (as defined by percent) from a sorted list of numbers:
-
- For the list of numbers, line 4 returns the 10th percentile.
- The line 5 returns the 30th percentile.
- The line 6 returns the 50th percentile.
- The line 7 returns the 75th percentile.
- The line 8 returns the 99th percentile.
- func.get_smooth_step_function(min_val, max_val, ...