nullpol.analysis.likelihood¶
nullpol.analysis.likelihood
¶
Likelihood package.
nullpol.analysis.likelihood.Chi2TimeFrequencyLikelihood
¶
Bases: TimeFrequencyLikelihood
A time-frequency likelihood class that computes the likelihood of the total null energy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interferometers
|
list
|
List of interferometers. |
required |
wavelet_frequency_resolution
|
float
|
The frequency resolution of the wavelet transform. |
required |
wavelet_nx
|
int
|
The number of points in the wavelet transform. |
required |
polarization_modes
|
list
|
List of polarization modes. |
required |
polarization_basis
|
list
|
List of polarization basis. |
None
|
time_frequency_filter
|
str
|
The time-frequency filter. |
None
|
Source code in src/nullpol/analysis/likelihood/chi2_tf_likelihood.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
nullpol.analysis.likelihood.Chi2TimeFrequencyLikelihood.data_context
property
¶
Access to the data context through null_stream_calculator.
Returns:
| Name | Type | Description |
|---|---|---|
TimeFrequencyDataContext |
The data context instance. |
nullpol.analysis.likelihood.Chi2TimeFrequencyLikelihood.antenna_pattern_processor
property
¶
Access to the antenna pattern processor through null_stream_calculator.
Returns:
| Name | Type | Description |
|---|---|---|
AntennaPatternProcessor |
The antenna pattern processor instance. |
nullpol.analysis.likelihood.Chi2TimeFrequencyLikelihood.interferometers
property
¶
A list of interferometers.
Returns:
| Type | Description |
|---|---|
|
bilby.gw.detector.InterferometerList: A list of interferometers. |
nullpol.analysis.likelihood.Chi2TimeFrequencyLikelihood.DoF
property
¶
Degree of freedom.
Returns:
| Name | Type | Description |
|---|---|---|
int |
Degree of freedom. |
nullpol.analysis.likelihood.Chi2TimeFrequencyLikelihood.noise_log_likelihood()
¶
Compute the noise log likelihood.
Returns:
| Name | Type | Description |
|---|---|---|
float |
The noise log likelihood. |
Source code in src/nullpol/analysis/likelihood/time_frequency_likelihood.py
107 108 109 110 111 112 113 114 115 | |
nullpol.analysis.likelihood.Chi2TimeFrequencyLikelihood.log_likelihood()
¶
Compute the log likelihood using the projection approach.
Source code in src/nullpol/analysis/likelihood/chi2_tf_likelihood.py
63 64 65 66 67 68 | |
nullpol.analysis.likelihood.TimeFrequencyLikelihood
¶
Bases: Likelihood
A time-frequency likelihood class with modular architecture.
This class uses composition to separate concerns: - Data management and antenna pattern operations are handled by NullStreamCalculator - Null stream computations are handled by NullStreamCalculator
For low-level data access, use: likelihood.null_stream_calculator.data_context.property_name For antenna pattern operations, use: likelihood.null_stream_calculator.antenna_pattern_processor.method_name For null stream computations, use: likelihood.null_stream_calculator.method_name For high-level likelihood operations, use the methods on this class directly.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
interferometers
|
list
|
List of interferometers. |
required |
wavelet_frequency_resolution
|
float
|
The frequency resolution of the wavelet transform. |
required |
wavelet_nx
|
int
|
The number of points in the wavelet transform. |
required |
polarization_modes
|
list
|
List of polarization modes. |
required |
polarization_basis
|
list
|
List of polarization basis. |
None
|
time_frequency_filter
|
str
|
The time-frequency filter. |
None
|
Source code in src/nullpol/analysis/likelihood/time_frequency_likelihood.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
nullpol.analysis.likelihood.TimeFrequencyLikelihood.data_context
property
¶
Access to the data context through null_stream_calculator.
Returns:
| Name | Type | Description |
|---|---|---|
TimeFrequencyDataContext |
The data context instance. |
nullpol.analysis.likelihood.TimeFrequencyLikelihood.antenna_pattern_processor
property
¶
Access to the antenna pattern processor through null_stream_calculator.
Returns:
| Name | Type | Description |
|---|---|---|
AntennaPatternProcessor |
The antenna pattern processor instance. |
nullpol.analysis.likelihood.TimeFrequencyLikelihood.interferometers
property
¶
A list of interferometers.
Returns:
| Type | Description |
|---|---|
|
bilby.gw.detector.InterferometerList: A list of interferometers. |
nullpol.analysis.likelihood.TimeFrequencyLikelihood.log_likelihood()
¶
Log likelihood.
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
This should be implemented in a subclass. |
Source code in src/nullpol/analysis/likelihood/time_frequency_likelihood.py
89 90 91 92 93 94 95 | |
nullpol.analysis.likelihood.TimeFrequencyLikelihood.noise_log_likelihood()
¶
Compute the noise log likelihood.
Returns:
| Name | Type | Description |
|---|---|---|
float |
The noise log likelihood. |
Source code in src/nullpol/analysis/likelihood/time_frequency_likelihood.py
107 108 109 110 111 112 113 114 115 | |