public static double GetScale(ExampleBase exampleBase, double minSequentialExecutionTime) { Example example = Get(exampleBase.GetType().ToString()); DoublePair pair = example.Get(exampleBase, minSequentialExecutionTime); return(pair.Value); }
public DoublePair(DoublePair other) : this(NQuantLibcPINVOKE.new_DoublePair__SWIG_2(DoublePair.getCPtr(other)), true) { if (NQuantLibcPINVOKE.SWIGPendingException.Pending) { throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve(); } }
public override DoublePair GetDelta() { Now = DateTime.Now.Ticks; DoublePair d = DoublePair.FromTicks((Now - Start) * X, (Now - Start) * Y); Start = DateTime.Now.Ticks;; return(d); }
public DoublePair Get(ExampleBase exampleBase, double minSequentialExecutionTime) { foreach (DoublePair doublePair in AppropriateScales) { if (doublePair.Key == minSequentialExecutionTime) { return(doublePair); } } DoublePair result = new DoublePair(); result.Key = minSequentialExecutionTime; result.Value = findGoodSize(exampleBase, minSequentialExecutionTime); AppropriateScales.Add(result); return(result); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DoublePair obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public void Setup() { _sut = new DoublePair(); }
public override DoublePair GetDelta() { return(DoublePair.From1000((Now - Start) * X, (Now - Start) * Y)); }