protected double Run(Array[] observations)
{
if (observations == null)
throw new ArgumentNullException("observations");
if (observations.Length == 0)
throw new ArgumentException("Observation sequence vector must "+
"contain at least one observation sequence.", "observations");
for (int i = 0; i < observations.Length; i++)
{
if (observations[i].Length == 0)
{
throw new ArgumentException("The observation sequence at position "
+ i + " is empty. Observation sequences must contain at least "
+ " one observation.", "observations");
}
}
LogWeights = new double[observations.Length];
return run(observations);
}