public class Histogram extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int[] |
counts
The number features that can be reached within each one-minute bin.
|
static double |
LOGISTIC_STEEPNESS |
int[] |
sums
The weighted sum of all features that can be reached within each one-minute bin.
|
static WeightingFunction |
weightingFunction
The weighting functions to be used, as an array.
|
Constructor and Description |
---|
Histogram()
no-arg constructor for serialization/deserialization
|
Histogram(int[] times,
int[] weight)
Given parallel arrays of travel times and magnitudes for any number of destination features, construct
histograms that represent the distribution of individual features and total opportunities as a function of
travel time.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Histogram> |
buildAll(int[] times,
PointSet targets) |
void |
writeJson(com.fasterxml.jackson.core.JsonGenerator jgen)
Serialize this pair of histograms out as a JSON document using the given JsonGenerator.
|
public static final double LOGISTIC_STEEPNESS
public static WeightingFunction weightingFunction
public int[] counts
public int[] sums
public Histogram(int[] times, int[] weight)
times
- the time at which each destination is reached. The array will be destructively sorted in place.weight
- the weight or magnitude of each destination reached. it is parallel to times.public Histogram()
public void writeJson(com.fasterxml.jackson.core.JsonGenerator jgen) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
{ sums: [], counts: [] }
com.fasterxml.jackson.core.JsonGenerationException
IOException
Copyright © 2019. All rights reserved.