bashes.estimator module¶
- class bashes.estimator.Estimator(data, psfs, ivar, stampSize, pixelScale, ntheta, nxy, xymax, xy_oversampling, theta_oversampling, ng, gmax, g1_center, g2_center, featureCalculator=None)¶
Bases: object
Top-level class for performing a Bayesian shear estimation.
- static addArgs(parser)¶
Add arguments to the provided command-line parser that support the fromArgs() method.
- static fromArgs(args)¶
Returns a dictionary of constructor parameter values based on the parsed args provided.
- getNllFine(ig, idata)¶
Returns a (theta) array of NLL values marginalized over flux,x,y for the specified shear and data stamp index. Values are interpolated onto the fine oversampled grid self.thetaFine used for (theta) marginalization.
- getNllXYFine(ith, ig, idata)¶
Returns an (x,y) array of NLL values marginalized over flux for the specified theta, shear, and data stamp index. Values are interpolated onto the fine oversampled grid self.xyFine used for (x,y) marginalization.
- static marginalize(nll)¶
Returns an estimate of the -log of the integral of exp(-nll) using the provided values of nll tabulated on a uniform grid over the integration domain.
- usePrior(sourceModel, fluxSigmaFraction, weight=1.0, traceMsg=None)¶