IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43119


Ignore:
Timestamp:
Oct 15, 2026, 4:50:29 PM (41 hours ago)
Author:
eugene
Message:

the robust stats histogram bin size can become too small if a large number of values are used; set both upper and lower limit as a function of the guess stdev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/psLib/src/math/psStats.c

    r42888 r43119  
    14501450            // there's a factor of about 1/20 to include.  Keep the PS_MAX to ensure we never bin
    14511451            // wider than 1 sigma when the number of points is small.
    1452             psF32 dN = PS_MAX(1, (stats->robustN50 / 500.0));
     1452            // psF32 dN = PS_MAX(1, (stats->robustN50 / 500.0));
     1453            psF32 dN = PS_MAX(1, PS_MIN (10, (stats->robustN50 / 500.0)));
    14531454            binSize = guessStdev / dN;
    14541455        }
Note: See TracChangeset for help on using the changeset viewer.