Changeset 5059 for trunk/doc/pslib/psLibADD.tex
- Timestamp:
- Sep 15, 2005, 3:56:17 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibADD.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibADD.tex
r4537 r5059 1 %%% $Id: psLibADD.tex,v 1.8 5 2005-07-12 04:18:56eugene Exp $1 %%% $Id: psLibADD.tex,v 1.86 2005-09-16 01:56:17 eugene Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 324 324 325 325 \begin{itemize} 326 \item Perform the Robust Histogram Statistics algorithm above 327 \item Smooth the resulting histogram with a Gaussian with $\sigma_s$ = 328 1 bin. 326 \item Perform the Robust Histogram Statistics algorithm above, 327 yielding an estimated standard deviation, $\sigma$. 328 329 \item Generate a new histogram for the data sample setting a bin size, 330 $d\sigma$, based on the estimated standard deviation and the number 331 of data points in the inner 50 percentile ($N_{\rm 50}$) as follows: 332 333 \begin{itemize} 334 \item let $dN = (\sigma / d\sigma) = 0.017 N_{50}$ 335 \item limit $dN$ to the range 1 to 5. 336 \item set the bin size $d\sigma = \sigma / dN$ 337 \end{itemize} 338 339 \item Smooth the resulting histogram with a Gaussian with $\sigma_x$ = 340 1 bin in this new histogram. 329 341 \item Find the bin with the peak value in the range $\pm 2 \sigma$ of 330 342 the robust histogram median. 331 \item Fit a Gaussian to the bins in the range $\pm 2 \sigma$ of 332 the robust histogram median. 343 344 \item Fit a Gaussian to the bins in the range $\pm 20 \sigma$ of the 345 robust histogram median. Limit the fit range to the data range, if 346 the latter is less then $\pm 20 \sigma$. If the data range is small 347 compared to the estimated $\sigma$, fit at least 4 bins of the 348 hisgram centered on the robust histogram median. 349 333 350 \item The robust mean $\mbox{mean}_r$ is derived directly from the 334 351 fitted Gaussian mean. 335 352 \item The robust standard deviation, $\sigma_r$, is determined by 336 353 subtracting the smoothing scale in quadrature: $\sigma_r^2 = 337 \sigma ^2 - \sigma_s^2$354 \sigma_{\rm fit}^2 - \sigma_s^2$ 338 355 \end{itemize} 339 356 357 To explain the choice of the histogram bin size: a histogram of a 358 Gaussian distribution with bin size $d\sigma$ will have approximately 359 $(2.35 \sigma/d\sigma)$ bins covering the range LQ to UQ. Thus, the 360 average number of points per bin ($N_{\rm bin}$) in that interval will 361 be $N_{50} / (2.35 \sigma/d\sigma)$. The value of $d\sigma$ should be 362 no larger than $\sigma$, regardless of the number of points, to avoid 363 too much undersampling. The value of $d\sigma$ should also be no 364 smaller than $5\sigma$, again regardless of the number of points, to 365 avoid excessive oversample. Intermediate to those two values, the bin 366 size is choosen to keep about 25 points per bin. Thus, the bin size 367 ($d\sigma$) is set to about: 368 \[ 369 d\sigma = 2.35 \sigma (N_{\rm bin}/N_{50}) = (25 \times 2.35) (\sigma/N_{50}) 370 \] 371 With the limitation that $\sigma/d\sigma$ should be limited on one end 372 to the value 1, and the other to the value 5. The easiest way to set 373 this limit is to define dN to be: 374 \[ 375 dN = (\sigma / d\sigma) = (N_{50} / N_{\rm bin}) / 2.35 = 0.017 * N_{50} 376 \] 340 377 \subsubsection{Histograms} 341 378
Note:
See TracChangeset
for help on using the changeset viewer.
