The weighting factor for each pixel used in the least-squares fit depends on the parameter weighting, which can have
a value of either 1 (the default value with weights of
, where
is the pixel variance (
), or 2 with a pixel weighting value of 1.