public class Binning extends Object
| Constructor and Description |
|---|
Binning() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
centerValuesPerBin(int bins,
double min,
double max)
Returns array of center values for each bin.
|
static double[] |
edgeValuesPerBin(int bins,
double min,
double max)
Returns array of left edge values for each bin.
|
static int |
exclusiveValueToBin(int bins,
double min,
double max,
double value)
Convert value to bin number.
|
static int |
valueToBin(int bins,
double min,
double max,
double value)
Convert value to bin number.
|
public static int valueToBin(int bins,
double min,
double max,
double value)
This variant is inclusive, it assigns all values to the range 0..(bins-1).
bins - min - max - value - public static int exclusiveValueToBin(int bins,
double min,
double max,
double value)
This variant is exclusive, not all values map to the range 0...(bins-1).
public static double[] edgeValuesPerBin(int bins,
double min,
double max)
public static double[] centerValuesPerBin(int bins,
double min,
double max)
Copyright © 2015–2022 ImgLib2. All rights reserved.