Package pycv :: Package cs :: Package dm
[hide private]
[frames] | no frames]

Package dm

source code

An umbrella package containing all Discrete Mathematics.



Submodules [hide private]

Functions [hide private]
 
argsort_and_cut(a)
Find argsort and 'list of cuts' of a 1D 'double' array
source code
 
argsort(a)
Take a 1D array of type '[u]int<8|16|32|64>' or 'float<32|64>', and return a 1D array of indices that sorts the former in ascending order.
source code
Variables [hide private]
  __doc__
Function Details [hide private]

argsort_and_cut(a)

source code 

Find argsort and 'list of cuts' of a 1D 'double' array

Input:
a: a 1D 'double' array
Output:
id: an index array that sorts a in ascending orders B: an array of thresholds that cuts a properly