Exemple #1
0
        public void Evaluate(double[] X, double[] P, double[] Y)
        {
            double temperature         = Temperature.ToKelvin(X[0], _temperatureUnitOfX);
            double energyAsTemperature = Energy.ToTemperatureSI(P[1], _paramEnergyUnit);
            double ybase = P[0] * Math.Exp(energyAsTemperature / temperature);

            Y[0] = TransformedValue.BaseValueToTransformedValue(ybase, _dependentVariableTransform);
        }
Exemple #2
0
        public void Evaluate(double[] X, double[] P, double[] Y)
        {
            double temperature = Temperature.ToKelvin(X[0], _temperatureUnitOfX);
            double B           = Temperature.ToKelvin(P[1], _temperatureUnitOfB);
            double T0          = Temperature.ToKelvin(P[2], _temperatureUnitOfT0);
            double yraw        = P[0] * Math.Exp(B / (temperature - T0));

            Y[0] = TransformedValue.BaseValueToTransformedValue(yraw, _dependentVariableTransform);
        }