Add a Fibonacci fitter for metrics bucketing

A Fibonacci fitter is useful in situations where you want more precision on the
low end than an ExponentialFitter with exponent base 2 provides without the
hassle of dealing with non-integer boundaries, such as would be created by an
exponential fitter with a base of less than 2. Fibonacci fitters are ideal for
integer metrics that are bounded across a certain range, e.g. integers between 1
and 1,000.

This also cleans up some unit test comments.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=156773367
This commit is contained in:
mcilwain 2017-05-22 12:53:16 -07:00 committed by Ben McIlwain
parent e6af34301d
commit 1adeb57fea
4 changed files with 149 additions and 2 deletions

View file

@ -22,7 +22,7 @@ import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** Tests for implementations of {@link DistributionFitter}. */
/** Unit tests for {@link ExponentialFitter}. */
@RunWith(JUnit4.class)
public class ExponentialFitterTest {