/// <summary>
		/// Initializes a new instance of the <see cref="LinearRegression"/>.
		/// </summary>
		/// <param name="linearReg">Linear regression.</param>
		/// <param name="rSquared">Regression R-squared.</param>
		/// <param name="regSlope">Coefficient with independent variable, slope of a straight line.</param>
		/// <param name="standardError">Standard error.</param>
		public LinearRegression(LinearReg linearReg, RSquared rSquared, LinearRegSlope regSlope, StandardError standardError)
			: base(linearReg, rSquared, regSlope, standardError)
		{
			LinearReg = linearReg;
			RSquared = rSquared;
			LinearRegSlope = regSlope;
			StandardError = standardError;

			Mode = ComplexIndicatorModes.Parallel;
		}
		public static int toC(StandardError enumValue){return (int)enumValue;}
 private void ServerProcess_ErrorDataReceived(object sender, DataReceivedEventArgs e)
 {
     StandardError?.Invoke(this, e);
 }
Exemple #4
0
 private bool Equals(LinearFitResult other)
 {
     return(EstimatedValue.Equals(other.EstimatedValue) && StandardError.Equals(other.StandardError) && TValue.Equals(other.TValue) && DegreesOfFreedom == other.DegreesOfFreedom && PValue.Equals(other.PValue));
 }
Exemple #5
0
 public override string ToString()
 {
     // ReSharper disable NonLocalizedString
     return(string.Format("{0} SE {1}", EstimatedValue.ToString("0.####"), StandardError.ToString("0.####")));
     // ReSharper restore NonLocalizedString
 }
 protected override void StdErr(string message)
 {
     Console.Error.WriteLine(message);
     StandardError.Add(message);
 }
Exemple #7
0
 public bool PAExec(string arguments)
 {
     Program = "paexec.exe";
     execute(Px_Arguments(arguments));
     if (ExitCode == 0)
     {
         return(true);
     }
     else if (ExitCode < 0)
     {
         StandardError += string.Format("| PAEXEC Error {0}: ", ExitCode);
         if (ExitCode == -1)
         {
             StandardError += "internal error";
         }
         if (ExitCode == -2)
         {
             StandardError += "command line error";
         }
         if (ExitCode == -3)
         {
             StandardError += "failed to launch app (locally)";
         }
         if (ExitCode == -4)
         {
             StandardError += "failed to copy PAExec to remote (connection to ADMIN$ might have failed)";
         }
         if (ExitCode == -5)
         {
             StandardError += "connection to server taking too long (timeout)";
         }
         if (ExitCode == -6)
         {
             StandardError += "PAExec service could not be installed/started on remote server";
         }
         if (ExitCode == -7)
         {
             StandardError += "could not communicate with remote PAExec service";
         }
         if (ExitCode == -8)
         {
             StandardError += "failed to copy app to remote server";
         }
         if (ExitCode == -9)
         {
             StandardError += "failed to launch app (remotely)";
         }
         if (ExitCode == -10)
         {
             StandardError += "app was terminated after timeout expired";
         }
         if (ExitCode == -11)
         {
             StandardError += "forcibly stopped with Ctrl-C / Ctrl-Break";
         }
         log.Error(StandardError);
         return(false);
     }
     else if (ExitCode > 0)
     {
         log.Error(StandardError = string.Format("Program ran but returned error {0}: {1}", ExitCode, StandardError.Trim()));
         return(false);
     }
     log.Fatal(StandardError += " <--is some crazy shit that happend and I failed to process it.");
     return(false);
 }