public class ArrayCategoricalTarget extends Target<ArrayCategoricalTarget> implements CategoricalTarget
| Constructor and Description |
|---|
ArrayCategoricalTarget(Map<Object,Integer> indexMap,
double missingCount) |
ArrayCategoricalTarget(Map<Object,Integer> indexMap,
Object category) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addJSON(org.json.simple.JSONArray binJSON,
DecimalFormat format) |
protected ArrayCategoricalTarget |
clone() |
HashMap<Object,Double> |
getCounts() |
double |
getMissingCount() |
Histogram.TargetType |
getTargetType() |
protected ArrayCategoricalTarget |
init() |
protected ArrayCategoricalTarget |
mult(double multiplier) |
void |
setIndexMap(Map<Object,Integer> indexMap) |
protected ArrayCategoricalTarget |
sum(ArrayCategoricalTarget target) |
public ArrayCategoricalTarget(Map<Object,Integer> indexMap, double missingCount)
public ArrayCategoricalTarget(Map<Object,Integer> indexMap, Object category) throws MixedInsertException
MixedInsertExceptionpublic HashMap<Object,Double> getCounts()
getCounts in interface CategoricalTargetpublic double getMissingCount()
getMissingCount in class Target<ArrayCategoricalTarget>public Histogram.TargetType getTargetType()
getTargetType in class Target<ArrayCategoricalTarget>protected void addJSON(org.json.simple.JSONArray binJSON,
DecimalFormat format)
addJSON in class Target<ArrayCategoricalTarget>protected ArrayCategoricalTarget sum(ArrayCategoricalTarget target)
sum in class Target<ArrayCategoricalTarget>protected ArrayCategoricalTarget mult(double multiplier)
mult in class Target<ArrayCategoricalTarget>protected ArrayCategoricalTarget clone()
clone in class Target<ArrayCategoricalTarget>protected ArrayCategoricalTarget init()
init in class Target<ArrayCategoricalTarget>Copyright © 2014. All rights reserved.