public class ProbableValue<T> extends Object
| Constructor and Description |
|---|
ProbableValue(org.json.simple.JSONObject json,
@NonNls String type)
Reads a distribution from a JSON object.
|
public ProbableValue(org.json.simple.JSONObject json,
@NonNls
@NonNls String type)
json - a JSON objecttype - the JSON property of json to read, which is either an instance of
T or an array of objects of the form {'chance': 0.123, 'value': T}Copyright © 2021. All rights reserved.