GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Numerics/Numerics/Functions/IUnivariateFunction.cs at main · USACE-RMC/Numerics Expand file tree/ Copy pathIUnivariateFunction.csMore file actions 85 lines (72 loc) · 3.09 KB / Copy pathIUnivariateFunction.csFile metadata and controls85 lines (72 loc) · 3.09 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 using System; using System.Collections.Generic; namespace Numerics.Functions { /// <summary> /// Interface for Univariate Functions. /// </summary> /// <remarks> /// <para> /// <b> Authors: </b> /// Haden Smith, USACE Risk Management Center, [email protected] /// </para> /// </remarks> public interface IUnivariateFunction { /// <summary> /// Returns the number of function parameters. /// </summary> int NumberOfParameters { get; } /// <summary> /// Returns a boolean value describing if the current parameters are valid or not. /// If not, an ArgumentOutOfRange exception will be thrown when trying to use function. /// </summary> bool ParametersValid { get; } /// <summary> /// Gets and sets the minimum X value supported by the function. Default = double.MinValue. /// </summary> double Minimum { get; set; } /// <summary> /// Gets and sets the maximum X value supported by the function. Default = double.MaxValue. /// </summary> double Maximum { get; set; } /// <summary> /// Gets the minimum values allowable for each parameter. /// </summary> double[] MinimumOfParameters { get; } /// <summary> /// Gets the maximum values allowable for each parameter. /// </summary> double[] MaximumOfParameters { get; } /// <summary> /// Determines if the function is deterministic or if it has uncertainty. /// </summary> bool IsDeterministic { get; set; } /// <summary> /// The confidence level to estimate when the function has uncertainty. /// </summary> double ConfidenceLevel { get; set; } /// <summary> /// Set the function parameters. /// </summary> /// <param name="parameters">Array of parameters.</param> void SetParameters(IList<double> parameters); /// <summary> /// Test to see if function parameters are valid. /// </summary> /// <param name="parameters">Array of parameters.</param> /// <param name="throwException">Boolean indicating whether to throw the exception or not.</param> /// <returns>Nothing if the parameters are valid and the exception if invalid parameters were found.</returns> ArgumentOutOfRangeException? ValidateParameters(IList<double> parameters, bool throwException); /// <summary> /// Returns the function evaluated at a point x. If function is uncertain, the function is computed at the set confidence level. /// </summary> /// <param name="x">The x-value in the function to evaluate.</param> double Function(double x); /// <summary> /// Returns the inverse function evaluated at a point y. If function is uncertain, the function is computed at the set confidence level. /// </summary> /// <param name="y">The y-value in the inverse function to evaluate.</param> double InverseFunction(double y); } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |