Carmen Code
 All Classes Files Functions Variables Macros Pages
Functions
ComputedTolerance.cpp File Reference

Adapt trheshold parameter or use it fixed. More...

#include "Carmen.h"
Include dependency graph for ComputedTolerance.cpp:

Functions

real ComputedTolerance (const int ScaleNo)
 Returns the computed tolerance at the scale ScaleNo, either using Harten or Donoho thresholding (if CVS=true). More...
 

Detailed Description

Adapt trheshold parameter or use it fixed.

Function Documentation

real ComputedTolerance ( const int  ScaleNo)

Returns the computed tolerance at the scale ScaleNo, either using Harten or Donoho thresholding (if CVS=true).

Parameters
ScaleNoLevel of interest.
Returns
double
23 {
24 //if ThresholdNorm==0 const Tolerance, else L1 Harten norm
25 
26  if(ThresholdNorm)
27  return((Tolerance/GlobalVolume)*exp(Dimension*(ScaleNo-ScaleNb+1)*log(2.)));
28  else
29  return(Tolerance);
30 
31 }
int ScaleNb
Definition: Parameters.cpp:87
int Dimension
Definition: Parameters.cpp:74
real GlobalVolume
Definition: Parameters.cpp:203
real Tolerance
Definition: Parameters.cpp:91
int ThresholdNorm
Definition: Parameters.cpp:100