Skip to main content
Ctrl+K
gammapy vX.Y.Z - Home gammapy vX.Y.Z - Home
  • Getting started
  • User guide
  • Tutorials
  • API reference
  • Developer guide
  • Release notes
dev1.31.21.11.0.20.20.10.190.18.20.170.16
  • Github
  • Slack
  • Getting started
  • User guide
  • Tutorials
  • API reference
  • Developer guide
  • Release notes
dev1.31.21.11.0.20.20.10.190.18.20.170.16
  • Github
  • Slack

Section Navigation

  • data - DL3 data and observations
    • get_irfs_features
    • DataStore
    • EventList
    • EventListMetaData
    • ObservationMetaData
    • FixedPointingInfo
    • GTI
    • HDUIndexTable
    • Observation
    • ObservationFilter
    • Observations
    • ObservationsEventsSampler
    • ObservationTable
    • PointingInfo
    • PointingMode
    • observatory_locations
  • irf - Instrument response functions
    • load_irf_dict_from_file
    • Background2D
    • Background3D
    • BackgroundIRF
    • EDispKernel
    • EDispKernelMap
    • EDispMap
    • EffectiveAreaTable2D
    • EnergyDependentMultiGaussPSF
    • EnergyDispersion2D
    • FoVAlignment
    • IRFMap
    • IRF
    • ParametricPSF
    • PSF3D
    • PSFKernel
    • PSFKing
    • PSFMap
    • RecoPSFMap
    • RadMax2D
    • IRF_REGISTRY
  • makers - Data reduction
    • AdaptiveRingBackgroundMaker
    • DatasetsMaker
    • FoVBackgroundMaker
    • Maker
    • MapDatasetMaker
    • PhaseBackgroundMaker
    • ReflectedRegionsBackgroundMaker
    • ReflectedRegionsFinder
    • RegionsFinder
    • RingBackgroundMaker
    • SafeMaskMaker
    • SpectrumDatasetMaker
    • WobbleRegionsFinder
    • MAKER_REGISTRY
    • make_counts_rad_max
    • make_edisp_kernel_map
    • make_edisp_map
    • make_map_background_irf
    • make_map_exposure_true_energy
    • make_psf_map
    • make_theta_squared_table
    • make_effective_livetime_map
    • make_observation_time_map
  • datasets - Reduced datasets
    • create_empty_map_dataset_from_irfs
    • create_map_dataset_from_observation
    • create_map_dataset_geoms
    • apply_edisp
    • split_dataset
    • Dataset
    • Datasets
    • FermipyDatasetsReader
    • FluxPointsDataset
    • MapDataset
    • MapDatasetEventSampler
    • MapDatasetOnOff
    • ObservationEventSampler
    • OGIPDatasetWriter
    • OGIPDatasetReader
    • SpectrumDataset
    • SpectrumDatasetOnOff
    • MapDatasetMetaData
    • DATASET_REGISTRY
    • apply_edisp
    • split_dataset
    • create_map_dataset_from_dl4
  • maps - Sky maps
    • containment_radius
    • containment_region
    • Geom
    • HpxGeom
    • HpxMap
    • HpxNDMap
    • LabelMapAxis
    • Map
    • MapAxes
    • MapAxis
    • MapCoord
    • Maps
    • RegionGeom
    • RegionNDMap
    • TimeMapAxis
    • WcsGeom
    • WcsMap
    • WcsNDMap
  • modeling - Models and fitting
    • select_nested_models
    • stat_profile_ul_scipy
    • Covariance
    • Fit
    • FitResult
    • OptimizeResult
    • CovarianceResult
    • Parameter
    • Parameters
    • PriorParameter
    • PriorParameters
    • Sampler
    • SamplerResult
    • create_cosmic_ray_spectral_model
    • create_crab_spectral_model
    • create_fermi_isotropic_diffuse_model
    • integrate_spectrum
    • scale_plot_flux
    • read_hermes_cube
    • BrokenPowerLawSpectralModel
    • CompoundSpectralModel
    • ConstantFluxSpatialModel
    • ConstantSpatialModel
    • ConstantSpectralModel
    • ConstantTemporalModel
    • DatasetModels
    • DiskSpatialModel
    • EBLAbsorptionNormSpectralModel
    • ExpCutoffPowerLaw3FGLSpectralModel
    • ExpCutoffPowerLawNormSpectralModel
    • ExpCutoffPowerLawSpectralModel
    • ExpDecayTemporalModel
    • FoVBackgroundModel
    • GaussianSpatialModel
    • GaussianSpectralModel
    • GaussianTemporalModel
    • GeneralizedGaussianSpatialModel
    • GeneralizedGaussianTemporalModel
    • LightCurveTemplateTemporalModel
    • LinearTemporalModel
    • LogParabolaNormSpectralModel
    • LogParabolaSpectralModel
    • MeyerCrabSpectralModel
    • Model
    • Models
    • ModelBase
    • NaimaSpectralModel
    • PiecewiseNormSpectralModel
    • PiecewiseNormSpatialModel
    • PointSpatialModel
    • PowerLaw2SpectralModel
    • PowerLawNormSpectralModel
    • PowerLawSpectralModel
    • PowerLawTemporalModel
    • Prior
    • GaussianPrior
    • UniformPrior
    • LogUniformPrior
    • ScaleSpectralModel
    • Shell2SpatialModel
    • ShellSpatialModel
    • SineTemporalModel
    • SkyModel
    • SmoothBrokenPowerLawSpectralModel
    • SpatialModel
    • SpectralModel
    • SuperExpCutoffPowerLaw3FGLSpectralModel
    • SuperExpCutoffPowerLaw4FGLDR3SpectralModel
    • SuperExpCutoffPowerLaw4FGLSpectralModel
    • TemplatePhaseCurveTemporalModel
    • TemplateSpatialModel
    • TemplateSpectralModel
    • TemplateNDSpatialModel
    • TemplateNDSpectralModel
    • TemplateNPredModel
    • TemporalModel
    • MODEL_REGISTRY
    • SPATIAL_MODEL_REGISTRY
    • SPECTRAL_MODEL_REGISTRY
    • TEMPORAL_MODEL_REGISTRY
    • EBL_DATA_BUILTIN
    • read_hermes_cube
  • estimators - High level estimators
    • ASmoothMapEstimator
    • Estimator
    • ExcessMapEstimator
    • FluxMaps
    • FluxPoints
    • FluxPointsEstimator
    • FluxProfileEstimator
    • ImageProfile
    • ImageProfileEstimator
    • LightCurveEstimator
    • ParameterEstimator
    • SensitivityEstimator
    • ParameterSensitivityEstimator
    • TSMapEstimator
    • EnergyDependentMorphologyEstimator
    • FluxMetaData
    • ESTIMATOR_REGISTRY
    • combine_flux_maps
    • combine_significance_maps
    • estimate_exposure_reco_energy
    • find_peaks
    • find_peaks_in_flux_map
    • resample_energy_edges
    • get_rebinned_axis
    • get_combined_flux_maps
    • get_combined_significance_maps
    • compute_lightcurve_fvar
    • compute_lightcurve_fpp
    • compute_lightcurve_doublingtime
    • compute_lightcurve_discrete_correlation
  • analysis - High level interface
    • Analysis
    • AnalysisConfig
  • catalog - Source catalogs
    • SourceCatalog
    • SourceCatalog1LHAASO
    • SourceCatalog2FHL
    • SourceCatalog2HWC
    • SourceCatalog3FGL
    • SourceCatalog3FHL
    • SourceCatalog3HWC
    • SourceCatalog4FGL
    • SourceCatalog2PC
    • SourceCatalog3PC
    • SourceCatalogGammaCat
    • SourceCatalogHGPS
    • SourceCatalogLargeScaleHGPS
    • SourceCatalogObject
    • SourceCatalogObject1LHAASO
    • SourceCatalogObject2FHL
    • SourceCatalogObject2HWC
    • SourceCatalogObject3FGL
    • SourceCatalogObject3FHL
    • SourceCatalogObject3HWC
    • SourceCatalogObject4FGL
    • SourceCatalogObject2PC
    • SourceCatalogObject3PC
    • SourceCatalogObjectGammaCat
    • SourceCatalogObjectHGPS
    • SourceCatalogObjectHGPSComponent
    • CATALOG_REGISTRY
  • astro - Astrophysics
    • DarkMatterAnnihilationSpectralModel
    • DarkMatterDecaySpectralModel
    • JFactory
    • PrimaryFlux
    • BurkertProfile
    • DMProfile
    • EinastoProfile
    • IsothermalProfile
    • MooreProfile
    • NFWProfile
    • ZhaoProfile
    • add_observed_parameters
    • add_pulsar_parameters
    • add_pwn_parameters
    • add_snr_parameters
    • make_base_catalog_galactic
    • make_catalog_random_positions_cube
    • make_catalog_random_positions_sphere
    • CaseBattacharya1998
    • Exponential
    • FaucherKaspi2006
    • FaucherKaspi2006VelocityBimodal
    • FaucherKaspi2006VelocityMaxwellian
    • FaucherSpiral
    • LogSpiral
    • Lorimer2006
    • Paczynski1990
    • Paczynski1990Velocity
    • ValleeSpiral
    • YusifovKucuk2004
    • YusifovKucuk2004B
    • radial_distributions
    • velocity_distributions
    • Pulsar
    • PWN
    • SimplePulsar
    • SNR
    • SNRTrueloveMcKee
  • stats - Statistics
    • cash
    • cash_sum_cython
    • cstat
    • f_cash_root_cython
    • get_wstat_gof_terms
    • get_wstat_mu_bkg
    • norm_bounds_cython
    • wstat
    • compute_fvar
    • compute_fpp
    • compute_flux_doubling
    • compute_chisq
    • structure_function
    • discrete_correlation
    • TimmerKonig_lightcurve_simulator
    • weighted_cash_sum_cython
    • sigma_to_ts
    • ts_to_sigma
    • CashCountsStatistic
    • Chi2FitStatistic
    • Chi2AsymmetricErrorFitStatistic
    • WStatCountsStatistic
  • scripts - Command line tools
  • visualization - Plotting features
    • annotate_heatmap
    • colormap_hess
    • colormap_milagro
    • add_colorbar
    • plot_contour_line
    • plot_heatmap
    • plot_map_rgb
    • plot_spectrum_datasets_off_regions
    • plot_theta_squared_table
    • plot_npred_signal
    • plot_distribution
    • MapPanelPlotter
  • utils - Utilities
    • standard_scaler
    • hierarchical_clustering
    • cartesian
    • fov_to_sky
    • galactic
    • motion_since_birth
    • polar
    • sky_to_fov
    • velocity_glon_glat
    • D_SUN_TO_GALACTIC_CENTER
    • trapz_loglog
    • interpolate_profile
    • interpolation_scale
    • ScaledRegularGridInterpolator
    • earth_location_from_dict
    • LazyFitsData
    • HDULocation
    • draw
    • get_random_state
    • normalize
    • pdf
    • sample_powerlaw
    • sample_sphere
    • sample_sphere_distance
    • sample_times
    • InverseCDFSampler
    • compound_region_to_regions
    • make_concentric_annulus_sky_regions
    • make_orthogonal_rectangle_sky_regions
    • regions_to_compound_region
    • region_to_frame
    • run_multiprocessing
    • multiprocessing_manager
    • BACKEND_DEFAULT
    • N_JOBS_DEFAULT
    • POOL_KWARGS_DEFAULT
    • METHOD_DEFAULT
    • METHOD_KWARGS_DEFAULT
    • from_yaml
    • get_images_paths
    • make_path
    • read_yaml
    • recursive_merge_dicts
    • to_yaml
    • write_yaml
    • hstack_columns
    • table_row_to_dict
    • table_standardise_units_copy
    • table_standardise_units_inplace
    • assert_quantity_allclose
    • assert_skycoord_allclose
    • assert_time_allclose
    • mpl_plot_check
    • requires_data
    • requires_dependency
    • Checker
    • absolute_time
    • time_ref_from_dict
    • time_ref_to_dict
    • time_relative_to_ref
    • standardise_unit
    • unit_from_fits_image_hdu
  • API reference
  • stats - Statistics
  • get_wstat_gof_terms

get_wstat_gof_terms#

gammapy.stats.get_wstat_gof_terms(n_on, n_off)[source]#

Goodness of fit terms for WSTAT.

See WStat : Poisson data with background measurement.

On this page
  • get_wstat_gof_terms()

This Page

  • Show Source

© Copyright 2025, The Gammapy developers.

Licensed under CC BY-NC-SA.

Examples, recipes, and other code licensed under BSD 3-Clause "New" or "Revised" license.

Gammapy Data Privacy information.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.