public IdentificationParameterHistory(IdentificationParameter identificationParameter)
 {
     Name        = identificationParameter.Name;
     Dimension   = identificationParameter.Dimension;
     DisplayUnit = identificationParameter.DisplayUnit;
     DisplayName = Constants.NameWithUnitFor(Name, DisplayUnit);
 }
예제 #2
0
 public virtual void RemoveIdentificationParameter(IdentificationParameter identificationParameter)
 {
     _allIdentificationParameters.Remove(identificationParameter);
     HasChanged = true;
 }
예제 #3
0
 public virtual void AddIdentificationParameter(IdentificationParameter identificationParameter)
 {
     _allIdentificationParameters.Add(identificationParameter);
     identificationParameter.ParameterIdentification = this;
     HasChanged = true;
 }
예제 #4
0
 private static bool isValidExtreme(IdentificationParameter identificationParameter, double value, Func <IParameter, double, bool, bool> consistencyChecker)
 {
     return(!allInconsistentExtremesFor(identificationParameter, value, consistencyChecker).Any());
 }
예제 #5
0
 private static IEnumerable <ParameterSelection> allInconsistentExtremesFor(IdentificationParameter identificationParameter, double value, Func <IParameter, double, bool, bool> consistencyChecker)
 {
     return(identificationParameter.AllLinkedParameters.Where(x => x.IsValid && !consistencyChecker(x.Parameter, value, identificationParameter.UseAsFactor)));
 }