public override void CalculateConnector(float[] results, float[] scalars, Operator oper) { for (int i = 0; i < results.Length; i++) { results[i] = (oper.ResultOnRightSide) ? (MathLogic.XNOR(results[i], scalars[i])) : (MathLogic.XNOR(scalars[i], results[i])); } }
public override bool Calculate(float[] result, float[][] parameters, Operator oper) { for (int i = 0; i < result.Length; i++) { float Num = (oper.UseRandomNumber) ? oper.RandomNumber : parameters[oper.ParameterIndex][i]; result[i] = (oper.ResultOnRightSide) ? (MathLogic.XNOR(Num, result[i])) : (MathLogic.XNOR(result[i], Num)); } return(true); }