public override float GetOutput(TupleList <float, float> inputs) { float sum = inputs.WeightedSum(); double x = coefficients['x'].coValue; return((float)Math.Sqrt(sum * x)); }
public override float GetOutput(TupleList <float, float> inputs) { double a = coefficients['a'].coValue; double b = coefficients['b'].coValue; float x = inputs.WeightedSum(); return((float)(a * x + b)); }
public override float GetOutput(TupleList <float, float> inputs) { float sum = inputs.WeightedSum(); float x = 1.0f; float y = .0f; float mod = 1.0f; return((x * sum + y) % mod); }
public override float GetOutput(TupleList <float, float> inputs) { float sum = inputs.WeightedSum(); double a = coefficients['a'].coValue; double b = coefficients['b'].coValue; double c = coefficients['c'].coValue; double d = coefficients['d'].coValue; return((float)(a * Math.Sin(Math.Pow(c * sum, d)) + b)); }
public override float GetOutput(TupleList <float, float> inputs) { float x = 1.0f; float y = .0f; float z = 1.0001f; float w = 1.0f; float sum = (float)Math.Abs(((double)inputs.WeightedSum()).Clamp((-z + 0.00009), (z - 0.00009))); return(Math.Abs((w - (sum % z)) * x) + y); }
public override float GetOutput(TupleList <float, float> inputs) { var sum = inputs.WeightedSum(); var a = coefficients['a'].coValue; var b = coefficients['b'].coValue; var c = coefficients['c'].coValue; double denominator = (1 * a) + Math.Pow(Math.E, -(sum * b)); return((float)((1.0 / denominator) + c)); }
public override float GetOutput(TupleList <float, float> inputs) { float sum = inputs.WeightedSum(); double mean = coefficients['m'].coValue; double variance = coefficients['v'].coValue; double power = coefficients['x'].coValue; double two = coefficients['2'].coValue; double exponent = -(Math.Pow((sum - mean), power) / (two * variance)); double divide = 1.0 / Math.Sqrt(two * Math.PI * variance); return((float)(divide * Math.Pow(Math.E, exponent))); }