Package pylal :: Package dq :: Module noisebudget :: Class NoiseBudget
[hide private]
[frames] | no frames]

Class NoiseBudget

source code

object --+    
         |    
      list --+
             |
            NoiseBudget

Object representing a list of NoiseTerms comprising a noise budget estimation.

Instance Methods [hide private]
new empty list
__init__(self, *args, **kwargs)
Initialise this NoiseBudget.
source code
 
append(self, *args, **kwargs)
append object to end
source code
 
sort(self, *args, **kwargs)
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1
source code
 
set_target(self, noiseterm)
Set the target of this NoiseBudget to be the noiseterm.
source code
 
get_target(self)
Returns the target of this NoiseBudget.
source code
 
compute_noise_sum(self, name="Noise sum")
Calculate the quadrature sum of terms in the NoiseBudget.
source code
 
compute_deficit(self, func=lambda(s,t): abs(1-(t/s)**2)**(1/2))
Calculate the deficit of thise NoiseBudget as the normalised quadrature difference ratio the sum of the NoiseTerms and the target.
source code
 
compute_ratio_deficit(self)
Calculate the deficit of thise NoiseBudget as the ratio of the sum of the NoiseTerms and the target.
source code
 
plot(self, outfile, **params)
Plot this NoiseBudget
source code
 
plot_deficit(self, outfile, **params)
Plot the difference between the noise budget sum and its target.
source code
 
plot_ratio_deficit(self, outfile, **params)
Plot the difference between the noise budget sum and its target.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]
  typemap = {'name': str, 'numTerms': int, 'target': NoiseTerm, ...
  name = None
hash(x)
  numTerms = 0
  target = None
hash(x)
  noise_sum = None
hash(x)

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Initialise this NoiseBudget. Arguments should be NoiseTerms to add to the
NoiseBudget.

Keyword arguments:

    name : str
        name for this NoiseBudget
    

Returns: new empty list
Overrides: object.__init__

append(self, *args, **kwargs)

source code 

append object to end

Overrides: list.append
(inherited documentation)

sort(self, *args, **kwargs)

source code 

stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1

Overrides: list.sort
(inherited documentation)

set_target(self, noiseterm)

source code 

Set the target of this NoiseBudget to be the noiseterm. Argument should be a NoiseTerm object.

get_target(self)

source code 

Returns the target of this NoiseBudget. Returns NoneType if no target has been set.

compute_noise_sum(self, name="Noise sum")

source code 

Calculate the quadrature sum of terms in the NoiseBudget. All terms whose sum attribute evaluates to True will be included.

compute_deficit(self, func=lambda(s,t): abs(1-(t/s)**2)**(1/2))

source code 

Calculate the deficit of thise NoiseBudget as the normalised quadrature
difference ratio the sum of the NoiseTerms and the target. Defaults to:

deficit = $\sqrt{1 - \left(rac{target}{sum of terms}
ight)^2}

Keyword arguments:

    func : callable
        any callable function that accepts noise sum and target arrays
    

compute_ratio_deficit(self)

source code 

Calculate the deficit of thise NoiseBudget as the ratio of the sum of the NoiseTerms and the target.

ratio_deficit = $ rac{target}{sum of terms}


Class Variable Details [hide private]

typemap

Value:
{'name': str, 'numTerms': int, 'target': NoiseTerm, 'noise_sum': Noise\
Term}