Package pylal :: Module PopStatement :: Class PopStatement
[hide private]
[frames] | no frames]

Class PopStatement

source code

object --+
         |
        PopStatement

Instance Methods [hide private]
 
__init__(self, grb_data, name_suffix)
Initializes the class with the GRB data
source code
 
add_data(self, grb_name, pop_injections_by_trial, pop_background_by_trial, pop_onsource) source code
 
finalize(self)
Just sets some numbers
source code
 
calculate_sample_to_ifar(self, sample, sample_ref)
Calculates a list of FAR given the items in the sample
source code
 
calculate_ifar(self, value, sample) source code
 
check_off_distribution(self, pop_min, pop_max, far=False) source code
 
check_off_distribution_lik(self) source code
 
check_off_distribution_far(self) source code
 
set_stat(self, stat)
Choose your statistics, either lik or ifar
source code
 
select_onsource(self, type, reject_empty=False)
Selecting fake trials from the set of offsource trials for each GRB.
source code
 
remove_empty_trials(self, data)
Function to remove any infinite value from a given list of data.
source code
 
mannwhitney_u(self, x, y)
Return the Mann-Whitney U statistic on the provided scores.
source code
 
mannwhitney_u_zscore(self, pop_test, pop_ref)
Return the z-score of a given sample.
source code
 
compute_wmu(self)
Computes the WMU z-score for the both cases using likelihood and the IFAR
source code
 
float_to_latex(self, x, format="%g")
Convert a floating point number to a latex representation.
source code
 
create_plot_hist(self) source code
 
create_plot_qq(self) source code
 
create_cdf_plot(self) source code
 
create_pdf_plot(self)
Create a pdf plot of the used data.
source code
 
create_hist_plot(self, n_bin, range=None) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, grb_data, name_suffix)
(Constructor)

source code 

Initializes the class with the GRB data

Overrides: object.__init__

mannwhitney_u(self, x, y)

source code 

Return the Mann-Whitney U statistic on the provided scores. Copied from scipy.stats.mannwhitneyu except that we only return the U such that large U means that population x was systematically larger than population y, rather than the smaller U between x and y. The two possible U values one can report are related by U' = n1*n2 - U.

mannwhitney_u_zscore(self, pop_test, pop_ref)

source code 

Return the z-score of a given sample. Not appropriate for n1 + n2 < ~20.

float_to_latex(self, x, format="%g")

source code 

Convert a floating point number to a latex representation. In particular, scientific notation is handled gracefully: e -> 10^