Package parsimony :: Package utils :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code

The :mod:`parsimony.utils.utils` module includes common functions and constants.

Please add anything useful or that you need throughout the whole package to this module.

Created on Thu Feb 8 09:22:00 2013

Copyright (c) 2013-2014, CEA/DSV/I2BM/Neurospin. All rights reserved.


Author: Tommy Löfstedt

License: BSD 3-clause.

Classes [hide private]
  AnonymousClass
Used to create anonymous classes.
Functions [hide private]
floating point number
time_cpu()
Return the CPU time or real time since the start of the process or since the first call to clock().
floating point number
time_wall()
Return the current time in seconds since the Epoch.
floating point number
time()
Return the CPU time or real time since the start of the process or since the first call to clock().
 
deprecated(*replaced_by)
This decorator can be used to mark functions as deprecated.
source code
 
optimal_shrinkage(X, T=None) source code
Variables [hide private]
  __package__ = 'parsimony.utils'
Function Details [hide private]

time_cpu()

 

Return the CPU time or real time since the start of the process or since the first call to clock(). This has as much precision as the system records.

Returns: floating point number

time_wall()

 

Return the current time in seconds since the Epoch. Fractions of a second may be present if the system clock provides them.

Returns: floating point number

time()

 

Return the CPU time or real time since the start of the process or since the first call to clock(). This has as much precision as the system records.

Returns: floating point number

deprecated(*replaced_by)

source code 
This decorator can be used to mark functions as deprecated.

Useful when phasing out old API functions.

Parameters
----------
replaced_by : String. The name of the function that should be used instead.