int nconvsteps,
double dectol,
IDoubleArray TCinit,
IDoubleArray chiInit)
{
NinjaEstimator ninja = new NinjaEstimator(_dtrajs);
ninja.setNHiddenStates(nHiddenStates);
ninja.setNIterHMMMax(nconvsteps);
ninja.setHMMLikelihoodMaxIncrease(dectol);
ninja.setTau(lag);
ninja.setTimeshift(timeshift);
// initialization from last lag
if (TCinit != null && chiInit != null)
ninja.setInit(TCinit, chiInit);
return ninja;
}