subsamples = this.data.getTitrationSubsamples(exp);
for (int j=0;j<subsamples.size();j++)
{
ssid = (String)subsamples.get(j);
this.declareParameter("Cxs_"+this.data.getNickname()+"_"+exp+"_"+ssid,new DblMatrix(1.0));
}
//Every experiment can have slightly different pKa/pKb.
if (this.hasBuffferCoefficientData())
{
DblMatrix[] pKa = this.parseKa(this.data.getAveragepKa());
DblMatrix[] pKb = this.parseKa(this.data.getAveragepKb());
for (int ion=0;ion<pKa.size();ion++)
{
for (int m=0;m<pKa[ion].getN();m++)
{
this.declareParameter("pKax_"+this.data.getNickname()+"_"+exp+"_"+ion+"_"+m);
this.declareParameter("pKbx_"+this.data.getNickname()+"_"+exp+"_"+ion+"_"+m);
}
}
}
}
}
BufferSolution everythingInThere = new BufferSolution();
everythingInThere.initialize();
String exp,ssid,obs,val;
Vector expnames;
Vector subsamples;
Vector obsnums;
expnames = this.data.getExperimentNames();
for (int i=0;i<expnames.size();i++)
{
exp = (String)expnames.get(i);
subsamples = this.data.getContainedSubsampleIDs(exp);
for (int j=0;j<subsamples.size();j++)
{
ssid = (String)subsamples.get(j);
obsnums = this.data.getContainedObservationNumbers(exp,ssid);
for (int k=0;k<obsnums.size();k++)
{
obs = (String)obsnums.get(k);
everythingInThere.add(this.data.getContainedNickname(exp,ssid,obs),new DblMatrix(1.0));
}
}
}
}