int numOfLayers = vi.length - 1;
this.layers = new Layer[numOfLayers];
for (int i = 0; i < numOfLayers; i++)
{
Layer l = new Layer(vi[i], vi[i + 1], RainbowUtil.convertArray(alphas[i]),
RainbowUtil.convertArray(betas[i]), RainbowUtil.convertArray(gammas[i]), RainbowUtil.convertArray(etas[i]));
this.layers[i] = l;
}
}