public SetInput ( string variableName, float value ) : void | ||
variableName | string | Name of the |
value | float | Numeric value to be used as input. |
return | void |
public void SetInput( string variableName, float value )
{
this.database.GetVariable( variableName ).NumericInput = value;
}
private byte Modify(InferenceSystem system, int[] windowData, byte center) { for (int i = 0; i < windowSize*windowSize - 1; i++) { system.SetInput(String.Format("IN{0}", i), windowData[i]); } int x = center + (byte) system.Evaluate("OUT"); if (x < 0) { return 0; } if (x > 255) { return 255; } return (byte) x; }