assertEquals("format", "asnm{n=0 m=[1.100, 2.200, 3.300] sd=[1.100, 2.200, 3.300]}", format);
String json = model.asJsonString();
GsonBuilder builder = new GsonBuilder();
builder.registerTypeAdapter(Model.class, new JsonModelAdapter());
Gson gson = builder.create();
AsymmetricSampledNormalModel model2 = gson.fromJson(json, modelType);
assertEquals("Json", format, model2.asFormatString(null));
}
public void testDirichletL1Model() {
double[] d = { 1.1, 2.2, 3.3 };