Esempio n. 1
0
 public DimensionedParameter(Units.Dimension dim)
 {
     this.parameter.ManualValue = 1;
     this.parameter.variable    = null;
     this.units.dimension       = dim;
     this.units.multiplier      = Units.Multiplier.unity;
 }
Esempio n. 2
0
			/// <summary>
			/// Dimensions of the extra parameters for this interpolation type, where yAxisDimension is the dimension
            /// of the y axis of the waveform (usually Volts, but in some cases could be Hz. Or maybe even amps?)
			/// </summary>
			public Units.Dimension [] extraParameterDimensionsForNonstandardYAxis (Units.Dimension yAxisDimension)
			{
                if (this.extraParametersCount==0)
                    return null;
                Units.Dimension[] answer = new Units.Dimension[this.extraParametersCount];
                for (int i=0; i<this.extraParametersCount; i++) {
                   if (ExtraParameterDimensionUseYAxis[(int)myID][i])
                       answer[i] = yAxisDimension;
                   else
                       answer[i] = ExtraParameterDimensions[(int)myID][i];
                }
                return answer;
			}
Esempio n. 3
0
 public Waveform(Units.Dimension nonStandardYAxisUnits)
 {
     this.YUnits = nonStandardYAxisUnits;
     this.setInterpolationType(InterpolationType.Linear);
 }