public void ClearContext()
{
int index = 0;
for (int i = 0; i < _layerIndex.Length; i++)
{
bool hasBias = (_layerContextCount[i] + _layerFeedCounts[i]) != _layerCounts[i];
// fill in regular neurons
for (int j = 0; j < _layerFeedCounts[i]; j++)
{
_layerOutput[index++] = 0;
}
// fill in the bias
if (hasBias)
{
_layerOutput[index++] = _biasActivation[i];
}
// fill in context
for (int j = 0; j < _layerContextCount[i]; j++)
{
_layerOutput[index++] = 0;
}
}
}