• Marc Celani's avatar
    Track min and max in TDigest, do not allow estimates to go out of bounds · b9d5fd6e
    Marc Celani authored
    Summary: As title. We were special casing q == 1 or q == 0 improperly before. This led to some strange results where p100 < p99.9. Track min and max (useful anyway), and use those for boundaries.
    
    Reviewed By: anakryiko
    
    Differential Revision: D7800645
    
    fbshipit-source-id: 5fa3e1d0d286d4b31442196ba74b072030706786
    b9d5fd6e
TDigest.cpp 8.85 KB