File: misc.py

package info (click to toggle)
python-scipy 0.5.2-0.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 33,888 kB
  • ctags: 44,231
  • sloc: ansic: 156,256; cpp: 90,347; python: 89,604; fortran: 73,083; sh: 1,318; objc: 424; makefile: 342
file content (21 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Last Change: Fri Nov 10 10:00 AM 2006 J

#=====================================================================
# "magic number", that is number used to control regularization and co
# Change them at your risk !
#=====================================================================

# max deviation allowed when comparing double (this is actually stupid,
# I should actually use a number of decimals)
_MAX_DBL_DEV    = 1e-10

# max conditional number allowed
_MAX_COND       = 1e8
_MIN_INV_COND   = 1/_MAX_COND

# Default alpha for regularization
_DEF_ALPHA  = 1e-1

# Default min delta for regularization
_MIN_DBL_DELTA  = 1e-5