Package gmisclib :: Module dict_vector
[frames] | no frames]

Module dict_vector

source code

Vectors of numbers, but indexed as a dictionary.

Classes
  dict_vector
Functions
 
round(x) source code
 
log(x) source code
 
min_within(x) source code
 
max_within(x) source code
 
min_between(*x) source code
 
max_between(*x) source code
 
to_float(d)
Ensure that all the values are float.
source code
 
to_numpy_float_1(d)
Ensure that all the values are float.
source code
 
to_numpy_float_2(d)
Ensure that all the values are float.
source code
 
to_int(d)
Ensure that all the values are int.
source code
 
outer(a, b)
Returns: an outer product.
source code
Variables
  __package__ = 'gmisclib'

Imports: math, operator, __builtin__, gpkmisc, dictops


Function Details

to_float(d)

source code 

Ensure that all the values are float.

Parameters:
  • d (dict(str:anything)) - a dictionary
Returns:
a dict_vector made of floats.

to_numpy_float_1(d)

source code 

Ensure that all the values are float.

Parameters:
  • d (dict(str:anything)) - a dictionary
Returns:
a dict_vector made of floats.

to_numpy_float_2(d)

source code 

Ensure that all the values are float.

Parameters:
  • d (dict(str:anything)) - a dictionary
Returns:
a dict_vector made of floats.

to_int(d)

source code 

Ensure that all the values are int.

Parameters:
  • d (dict(str:anything)) - a dictionary
Returns:
a dict_vector made of int.

outer(a, b)

source code 
Returns:
an outer product.