The Operate class gives you access to the built in curve operations in T/HIS. More...
The T/HIS JavaScript API provides many class constants, properties and methods. For Arup to
be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase
or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you
should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your
own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:
Details of functionsAbs(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionConvert a curve to absolute values |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo convert curve m to absolute values and store as curve p p = Operate.Abs(m);
|
Acos(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Arc Cosine |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Arc Cosine() of curve m and store as curve p p = Operate.Acos(m);
|
Acu(Input Curve[Curve], Offset[real], Time Period[real], Output Curve (optional)[Curve]) [static]DescriptionEvaluates the integratal of a curve over a user defined period |
Input Curve
User defined offset
Time to integrate over
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleIntegrate c curve over 0.07 seconds with a 0.1 offset. p = Operate.Acu(m,0.1,0.007);
|
Ad(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionConvert acceleration spectrum to a displacment spectrum |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m and store as curve p p = Operate.Ad(m);
|
Add(Input Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionAdd Y axis values |
Input Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo add curves m and n together and store as curve p p = Operate.Add(m,n); To add 20.0 to the values in curve m and store as curve p p = Operate.Add(m,20.0);
|
Adx(First Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionAdd X axis values |
First Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo add X axis values for curves m and n together and store as curve p p = Operate.Adx(m,n); To add 20.0 to the X axis values in curve m and store as curve p p = Operate.Adx(m,20.0);
|
Asi(X Acceleration[Curve], Y Acceleration[Curve], Z Acceleration[Curve], Acceleration conversion factor[real], X Acceleration Limit[real], Y Acceleration Limit[real], Z Acceleration Limit[real], Calculation method[string], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionAcceleration Severity Index. This value is used to assess the performance of road side crash barriers. The calculation method can be set to 2010 (BS EN 1317-1:2010) or 1998 (BS EN 1317-1:1998). |
X Acceleration Curve
Y Acceleration Curve
Z Acceleration Curve
Factor required to divide input acceleration curve by to convert to (G)
X direction acceleration limit
Y direction acceleration limit
Z direction acceleration limit
Either 2010 or 1998.
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
Asin(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Arc Sine |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Arc Sine() of curve m and store as curve p p = Operate.Asin(m);
|
Atan(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Arc Tangent |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Arc Tangent() of curve m and store as curve p p = Operate.Atan(m);
|
Atan2(First Input Curve[Curve], Second Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Arc Tangent using atan2(y, x) |
Input Curve
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Arc Tangent() of curve m / curve n and store as curve p p = Operate.Atan2(m, n);
|
Av(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionConvert acceleration spectrum to a velocity spectrum |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m and store as curve p p = Operate.Av(m);
|
Ave(Curves[Array of Curve objects], Output Curve (optional)[Curve]) [static]DescriptionAverage a group of curves |
Array of Curve objects
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleAverage the array of curves stored in curve array x and store as curve p p = Operate.Ave(x);
|
Bes(Input Curve[Curve], Frequency[real], Order[integer], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionBessel Filter |
Input Curve
Cut-off Frequency (Hz)
Filter order
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m using a cut-off of 400Hz and order 2 and output as curve p . Regularise the input curve using an interval of 0.0001 first. p = Operate.Bes(m,400.0,2,0.0001);
|
Blc(Input Curve[Curve]) [static]DescriptionCarry out a baseline correction on an accleration time history |
Moment / Time Curve
ReturnsArray of Curve objects. Return typeArray |
ExampleCalculate baseline correction on curve m, . c_array = Operate.Blc(m); corrected_curve = c_array[0]; vel_curve = c_array[1]; disp_curve = c_array[2];
|
But(Input Curve[Curve], Frequency[real], Order[integer], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionButterworth Filter |
Input Curve
Cut-off Frequency (Hz)
Filter order
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m using a cut-off of 400Hz and order 2 and output as curve p . Regularise the input curve using an interval of 0.0001 first. p = Operate.But(m,400.0,2,0.0001);
|
C1000(Input Curve[Curve], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionSAE Class 1000 Filter |
Input Curve
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m and output as curve p . Regularise the input curve using an interval of 0.0001 first. p = Operate.C1000(m,0.0001);
|
C180(Input Curve[Curve], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionSAE Class 180 Filter |
Input Curve
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m and output as curve p . Regularise the input curve using an interval of 0.0001 first. p = Operate.C180(m,0.0001);
|
C60(Input Curve[Curve], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionSAE Class 60 Filter |
Input Curve
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m and output as curve p . Regularise the input curve using an interval of 0.0001 first. p = Operate.C60(m,0.0001);
|
C600(Input Curve[Curve], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionSAE Class 600 Filter |
Input Curve
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m and output as curve p . Regularise the input curve using an interval of 0.0001 first. p = Operate.C600(m,0.0001);
|
Cat(First Curve[Curve], Second Curve[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionConcatenate 2 curves together |
First Curve
Second Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo concatenate the values for curve n to those in curve m and store as curve p p = Operate.Cat(m,n);
|
Clip(Input Curve[Curve], X min[real], X max[real], Y min[real], Y max[real], Output Curve (optional)[Curve]) [static]DescriptionClip a curve |
Input Curve
X minimum value
X maximum value
Y minimum value
Y maximum value
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleClip a curve m to within 0.1<x<0.3, 0.0<y<100.0 and store as curve p p = Operate.Clip(m,0.1,0.3,0.0,100.0);
|
Com(First Curve[Curve], Second Curve[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionCombine Y axis values from 2 curves together |
First Curve
Second Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo combine the Y axis values for curve n to those in curve m and store as curve p p = Operate.Com(m,n);
|
Cor(First Curve[Curve], Second Curve[Curve], Correlation type[string]) [static]DescriptionCurve Correlation function.
This Correlation function provides a measure of the degree to which two curves match.
When comparing curves by eye, the quality of correlation may be judged on the basis
of how well matched are the patterns of peaks, the overall shapes of the curves, etc,
and can allow for differences of timing as well as magnitude. Thus a simple function
based on the difference of Y-values (such as T/HIS ERR function) does not measure
correlation in the same way as the human eye. The T/HIS correlation function attempts
to include and quantify the more subtle ways in which the correlation of two curves
may be judged.
|
First Curve
Second Curve
Correlation type, strict or loose
ReturnsCorrelation value Return typereal |
ExampleCalculate the correlation between curves m and n using the strict input parameters. val = Operate.Cor(m,n,"strict");
|
Cor3(First Curve[Curve], Second Curve[Curve], X axis factor (optional)[real], Y axis factor (optional)[real]) [static]DescriptionCurve Correlation function.
This function first normalises the curves using two factors either specified by the user
or defaults calculated by the program (the maximum absolute X and Y values of both
graphs). For each point on the first normalised curve, the shortest distance to the
second normalised curve is calculated. The root mean square value of all these
distances is subtracted from 1 and then multiplied by 100 to get an index between 0
and 100. The process is repeated along the second curve and the two indices are
averaged to get a final index. The higher the index the closer the correlation between
the two curves.
|
First Curve
Second Curve
Normalising factor used for X axis values
Normalising factor used for Y axis values
ReturnsCorrelation value Return typereal |
Cos(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Cosine |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Cosine() of curve m and store as curve p p = Operate.Cos(m);
|
Da(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionConvert displacment spectrum to an acceleration spectrum |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m and store as curve p p = Operate.Da(m);
|
Dif(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionDifferentiate a curve |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo differentiate curve m and store as curve p p = Operate.Dif(m);
|
Div(First Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionDivide Y axis values |
First Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo divide the Y axis values for curve n by curve m and store as curve p p = Operate.Div(m,n); To devide the Y axis values in curve m by 20.0 and store as curve p p = Operate.Div(m,20.0);
|
Dix(First Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionDivide X axis values |
First Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo divide the X axis values for curve n by curve m and store as curve p p = Operate.Dix(m,n); To devide the X axis values in curve m by 20.0 and store as curve p p = Operate.Dix(m,20.0);
|
Dmg(Head Rotation Velocity X[Curve], Head Rotation Velocity Y[Curve], Head Rotation Velocity Z[Curve], Calculation method[string], X axis interval (optional)[real], Filter Class (optional)[string]) [static]DescriptionDamage Criterion DAMAGE Criterion is a brain injury metric which is based on deformation output from a second-order system of equation. DMG requires three input curves: Head Rotation Velocity X, Head Rotation Velocity Y, v. The function returns an array containing 4 curve objects. 1st Curve: Damage Resultant 2nd Curve: Damage X Component 3rd Curve: Damage Y Component 4th Curve: Damage Z Component |
Head Rotation Velocity X Curve
Head Rotation Velocity Y Curve
Head Rotation Velocity Z Curve
Calculation method used to solve Damage operation: 'rk4', 'rkf45', 'nbm'
If defined then T-HIS will automatically regularise the curve using this value first
If defined then T-HIS will automatically filter the input curve. The acceptable inputs for Filter class are 'C60', 'C180', 'C600', 'C1000'
ReturnsArray of Curve objects. 1st Curve: Damage Resultant 2nd Curve: Damage X Component 3rd Curve: Damage Y Component 4th Curve: Damage Z Component Return typeArray |
Ds(Input Curve[Curve], Broadening Factor[real], Redefine Frequencies[string], Output Curve (optional)[Curve]) [static]DescriptionGenerate a design spectrum from a reponse spectrum |
Input Curve
Spectrum broadening factor
T-HIS selects a new set of frequencies for the output (yes or no)
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m and let T-HIS determine the new frequencies, store as curve p p = Operate.Ds(m,"yes");
|
Dv(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionConvert displacment spectrum to a velocity spectrum |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m and store as curve p p = Operate.Dv(m);
|
Env(Curves[Array of Curve objects], Output Curve (optional)[Curve]) [static]DescriptionGenerate an Envelope that bounds the min and max values of a group of curves |
Array of Curve objects
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleEnvelope of curves stored in curve array x and store as curve p p = Operate.Env(x);
|
Err(First Curve[Curve], Second Curve[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionCalculate the degree of correlation between 2 curves |
First Curve
Second Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo calculate the correlation between curves n and m and store as curve p p = Operate.Err(m,n);
|
Exc(Input Curve[Curve], Output option[string], Output Curve (optional)[Curve]) [static]DescriptionCalculate and displays an EXCeedence plot. This is a plot of force (Y axis) versus
cumulative time (X axis) for which the force level has been exceeded. By default the Automatic option
will create an exceedence plot using either the +ve OR the -ve values depending on which the input
curve contains most of.
|
Input Curve
Select between automatic, positive or negative.
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Exceedence plot for curve m, using the positive option and store as curve p p = Operate.Exc(m,"positive");
|
Exp(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate E to the power of Y axis values |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate E to the power of Y axis values for curve m and store as curve p p = Operate.Exp(m);
|
Fft(Input Curve[Curve], Output option[string], X axis interval (optional)[real], Scaling option (optional)[string]) [static]DescriptionFast Fourier Transform |
Input Curve
Generate magnitude, magnitude+phase or real+imaginary, (one of magnitude,phase,real)
If defined then T-HIS will automatically regularise the curve using this value first
Scaling option, (either one or two)
ReturnsCurve object/array or NULL Return typeCurve |
Fir(Input Curve[Curve], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionFIR Filter |
Input Curve
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m and output as curve p . Regularise the input curve using an interval of 0.0001 first. p = Operate.Fir(m,0.0001);
|
Hic(Input Curve[Curve], Window[real], Acceleration factor[real]) [static]DescriptionHIC Calculation. After calculating the HIC value for a curve the value can also be obtained from the curve using the Curve.hic property. In addition to the HIC value the start and end time for the time window can also be obtained using the Curve.hic_tmin and Curve.hic_tmax properties. |
Input Curve
Maximum time window
Factor required to divide input acceleration curve by to convert to (G)
ReturnsHIC value Return typereal |
ExampleCalculate HIC for curve m, using a window of 0.036s and a factor of 9810. val = Operate.Hic(m,0.036,9810.0);
|
Hicd(Input Curve[Curve], Window[real], Acceleration factor[real]) [static]DescriptionModified HIC(d) Calculation for free motion headform. After calculating the HIC value for a curve the value can also be obtained from the curve using the Curve.hicd property. In addition to the HIC(d) value the start and end time for the time window can also be obtained using the Curve.hicd_tmin and Curve.hicd_tmax properties. |
Input Curve
Maximum time window
Factor required to divide input acceleration curve by to convert to (G)
ReturnsHIC(d) value Return typereal |
ExampleCalculate HIC(d) for curve m, using a window of 0.036s and a factor of 9810. val = Operate.Hicd(m,0.036,9810.0);
|
Ifft(First Curve[Curve], Second Curve[Curve], Input type[string]) [static]DescriptionInverse Fast Fourier Transform |
First Curve
Second Curve
Specifies if inputs are magnitude+phase or real+imaginary, (magnitude or real)
ReturnsCurve object or NULL Return typeCurve |
ExampleGenerate curve from magnitude (m) and phase (p) data and return as curve q. q = Operate.Ifft(m,p,"magnitude");
|
Int(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionIntegrate a curve |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo integrate curve m and store as curve p p = Operate.Int(m);
|
Log(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Natural Log of Y axis values |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Natural Log of Y axis values for curve m and store as curve p p = Operate.Log(m);
|
Log10(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Log (base 10) of Y axis values |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Log (base 10) of Y axis values for curve m and store as curve p p = Operate.Log10(m);
|
Log10x(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Log (base 10) of X axis values |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Log (base 10) of X axis values for curve m and store as curve p p = Operate.Log10x(m);
|
Logx(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Natural Log of X axis values |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Natural Log of X axis values for curve m and store as curve p p = Operate.Logx(m);
|
Lsq(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Least Squares Fit for a curve |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo calculate Least Squares Fit for curve m and store as curve p p = Operate.Lsq(m);
|
Map(First Curve[Curve], Second Curve[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionMap Y axis values from one curve onto another curve |
First Curve
Second Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo map curve n onto curve m and store as curve p p = Operate.Map(m,n);
|
Max(Curves[Array of Curve objects], Output Curve (optional)[Curve]) [static]DescriptionMaximum of a group of curves |
Array of Curve objects
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleMaximum of curves stored in curve array x p = Operate.Max(x);
|
Min(Curves[Array of Curve objects], Output Curve (optional)[Curve]) [static]DescriptionMinimum of a group of curves |
Array of Curve objects
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleMinimum of curves stored in curve array x p = Operate.Min(x);
|
Mon(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionSort a curve into monotonically increasing X axis values. |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo sort curve m and store as curve p p = Operate.Mon(m);
|
Mul(First Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionMultiply Y axis values |
First Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo multiply the Y axis values for curve n from m and store as curve p p = Operate.Mul(m,n); To multiply the Y axis values in curve m by 20.0 and store as curve p p = Operate.Mul(m,20.0);
|
Mux(First Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionMultiply X axis values |
First Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo multiply the X axis values for curve n from m and store as curve p p = Operate.Mux(m,n); To multiply the X axis values in curve m by 20.0 and store as curve p p = Operate.Mux(m,20.0);
|
Ncp(First Curve[Curve], Second Curve[Curve]) [static]DescriptionCalculate a platic rotation curve for a beam from a moment/time and rotation/time |
Moment / Time Curve
Rotation /Time Curve
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate plastic rotation curve p using curves m and r. q = Operate.Ncp(m,r);
|
Nij(Shear Force[Curve], Axial Force[Curve], Moment[Curve], Fzc_t[real], Fzc_c[real], Myc_f[real], Myc_e[real], E[real]) [static]DescriptionBiomechanical neck injury predictor. Used as a measure of injury due to the
load transferred through the occipital condyles.
|
Shear Force Curve
Axial Force Curve
Moment Curve
Critical Axial Force (Tension)
Critical Axial Force (Compression)
Critical bending moment (Flexion)
Critical bending moment (Extension)
Distance
ReturnsArray of Curve objects. Return typeArray |
Nor(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionNormalise Y axis values between [-1,1] |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleNormalise Y axis values of curve m and store as curve p p = Operate.Nor(m);
|
Nor2(Input Curve[Curve], Y Min Value[real], Y Max Value[real], Lock to Axis Y Min[integer], Lock to Axis Y Max[integer], Output Curve (optional)[Curve]) [static]DescriptionNormalise Y axis values with manual settings. The operation takes the absolute value of the user-specified Y Min and Y Max. It then finds the maximum of these two numbers and divides all Y data by this number. There are two locks which probe or "lock on to" the Y Max and Y Min axis values which offers quick axis-normalizing. |
First Curve
The Minimum Y value
The Maximum Y value
Set the Lock button for the Y Minimum textbox
Set the Lock button for the Y Maximum textbox
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
Nox(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionNormalise X axis values between [-1,1] |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleNormalise X axis values of curve m and store as curve p p = Operate.Nox(m);
|
Nox2(Input Curve[Curve], X Min Value[real], X Max Value[real], Lock to Axis X Min[integer], Lock to Axis X Max[integer], Output Curve (optional)[Curve]) [static]DescriptionNormalise X axis values with manual settings. The operation takes the absolute value of the user-specified X Min and X Max. It then finds the maximum of these two numbers and divides all X data by this number. There are two locks which probe or "lock on to" the X Max and X Min axis values which offers quick axis-normalizing. |
First Curve
The Minimum X value
The Maximum X value
Set the Lock button for the X Minimum textbox
Set the Lock button for the X Maximum textbox
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
Octave(Input Curve[Curve], Band type to convert to[String], Output Type[String], Input Type[String], Output Curve (optional)[Curve]) [static]DescriptionCoverts a narrow band curve to either Octave or 1/Third Octave bands |
Input Curve
Band type to convert to. Either "Octave" or "Third" Octave.
Generate curve containing either "RMS" or "mean" values.
Input curve contains either "Linear" or "dB" values.
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m that contains Linear values to 1/3 Octave bands and output RMS in curve p p = Operate.Octave(m,"third","rms","linear");
|
Olc(Input Curve[Curve], Second Curve or constant[Curve or real], X axis interval (optional)[real], Filter Class (optional)[string]) [static]DescriptionOccupant load Criterion. Used as a parameter to evaluate Euro NCAP MPDB assessment as specified in Technical Bulletin TB 027 v1.1.1, which is intended to be used with the Adult Occupant Protection. The function returns an array containing 5 curve objects. Curve 1 - Velocity of Virtual Occupant Curve 2 - Velocity of the Barrier Model Curve 3 - Displacement of the Barrier Model Curve 4 - Displacement of the Virtual Occupant Curve 5 - Relative Displacement between the two models |
Input Curve
Second Curve or constant
If defined then T-HIS will automatically regularise the curve using this value first
If defined then T-HIS will automatically filter the input curve. The acceptable inputs for Filter class are 'C60', 'C180', 'C600', 'C1000'
ReturnsArray of Curve objects. 1st Curve: Velocity of Virtual Occupant 2nd Curve: Velocity of the Barrier Model 3rd Curve: Displacement of the Barrier Model 4th Curve: Displacement of the Virtual Occupant 5th Curve: Relative Displacement between the two models Return typeArray |
Order(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionReverse the order of points in a curve |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleReverse the order of points in curve m and store as curve p p = Operate.Order(m);
|
Pbut(Input Curve[Curve], Frequency[real], Order[integer], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionPure Butterworth Filter |
Input Curve
Cut-off Frequency (Hz)
Filter order
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleFilter curve m using a cut-off of 400Hz and order 2 and output as curve p. Regularise the input curve using an interval of 0.0001 first. p = Operate.Pbut(m,400.0,2,0.0001);
|
Power(Input Curve[Curve], Power[real], Output Curve (optional)[Curve]) [static]DescriptionRaise to the power |
Input Curve
Power to raise Y axis values by
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleRaise the Y axis values for curve m to the power 2.5 and store as curve p p = Operate.Power(m,2.5);
|
Rave(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate rolling average of a curve |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate rolling average of curve m and store as curve p p = Operate.Rave(m);
|
Rec(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate reciprocal |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate receprocal of curve m and store as curve p p = Operate.Rec(m);
|
Reg(Input Curve[Curve], X axis interval[real], Output Curve (optional)[Curve]) [static]DescriptionRegularise X axis intervals for a curve. |
Input Curve
New X axis interval
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleRegularise curve m using a new X axis intreval of 0.0001. p = Operate.Reg(m,0.0001);
|
Res(Curves[Array of Curve objects], Output Curve (optional)[Curve]) [static]DescriptionResultant of a group of curves |
Array of Curve objects
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleResultant of curves stored in curve array x p = Operate.Res(x);
|
Rev(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionReverse X and Y axis values |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleReverse X and Y axis values of curve m and store as curve p p = Operate.Rev(m);
|
Rs(Input Curve[Curve], Damping Factor[real], Sampling Points[int], X axis interval (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionGenerate a reponse spectrum from input accelerations |
Input Curve
Dammping factor
Number of points to sample over (30 or 70)
If defined then T-HIS will automatically regularise the curve using this value first
Curve to overwrite
ReturnsArray of Curve objects Return typeArray |
ExampleGenerate a response spectrum using a factor of 0.05 and 70 sampling points. Regularise the input curve using an interval of 0.0001 first. p = Operate.Rs(m,0.05,70,0.0001);
|
Sin(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Sine |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Sine() of curve m and store as curve p p = Operate.Sin(m);
|
Smooth(Input Curve[Curve], Smoothing Factor[integer], Output Curve (optional)[Curve]) [static]DescriptionApply a smoothing factor to a curve |
Input Curve
Number of points to average over
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleSmooth curve m using 7 points and store as curve p p = Operate.Smooth(m,7);
|
Sqr(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionSquare root of a curve |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleSquare root curve m and store as curve p p = Operate.Sqr(m);
|
Stress(Input Curve[Curve], Convert to[string], Output Curve (optional)[Curve]) [static]DescriptionConvert between true and engineering stress |
Input Curve
Type to convert to (True or Engineering)
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m from engineering to true strees and store as curve p p = Operate.Stress(m,"True");
|
Sub(First Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionSubtract Y axis values |
First Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo subtract the Y axis values for curve n from m and store as curve p p = Operate.Sub(m,n); To subtract 20.0 from the Y axis values in curve m and store as curve p p = Operate.Sub(m,20.0);
|
Sum(Curves[Array of Curve objects], Output Curve (optional)[Curve]) [static]DescriptionSum of a group of curves |
Array of Curve objects
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleSum of curves stored in curve array x p = Operate.Sum(x);
|
Sux(First Curve[Curve], Second Curve or constant[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionSubtract X axis values |
First Curve
Second Curve or constant
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTo subtract the X axis values for curve n from m and store as curve p p = Operate.Sux(m,n); To subtract 20.0 from the X axis values in curve m and store as curve p p = Operate.Sux(m,20.0);
|
Tan(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionCalculate Tangent |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate Tangent() of curve m and store as curve p p = Operate.Tan(m);
|
Thiv(X Acceleration[Curve], Y Acceleration[Curve], Yaw Rate[Curve], Dx[real], Dy[real], X0[real]) [static]DescriptionTheoretical Head Impact Velocity and the Post Impact Head Deceleration.
These values are used to assess the performance of road side crash barriers.
|
X Acceleration Curve
Y Acceleration Curve
Yaw Rate Curve
Horizontal distance between occupants head and vehicle
Lateral distance between occupants head and vehicle
Horizontal distance between occupants head and vehicle CofG
ReturnsArray of Curve objects. Return typeArray |
ExampleCalculate THIV and PHD curves x,y,z and distances Dx=0.6, Dy=0.3, X0=0.0. c_array = Operate.Thiv(x,y,z,0.6,0.3,0.0); thiv = c_array[0].ymax; phd = c_array[1].ymax;
|
Ti(Axial Force[Curve], X Moment[Curve], Y Moment[Curve], Fzc[real], Mrc[real], X axis interval (optional)[real], Filter Class (optional)[string], Output Curve (optional)[Curve]) [static]DescriptionTibia Index is an injury criterion for the lower leg area used to predict leg injuries. |
Axial Force Curve
X Moment Curve
Y Moment Curve
Critical Axial Force
Critical Resultant Moment
If defined then T-HIS will automatically regularise the curve using this value first
If defined then T-HIS will automatically filter the input curve. The acceptable inputs for Filter class are 'C60', 'C180', 'C600', 'C1000'
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
Tms(Input Curve[Curve], Period[real]) [static]Description3ms Clip Calculation. After calculating the 3ms clip value for a curve the value can also be obtained from the curve using the Curve.tms property. In addition to the 3ms clip value the start and end time for the time window can also be obtained using the Curve.tms_tmin and Curve.tms_tmax properties. |
Input Curve
Clip period
Returns3ms clip value Return typereal |
ExampleCalculate 3ms clip for curve m, using a clip period of 0.003s. val = Operate.Tms(m,0.003);
|
Translate(Input Curve[Curve], X value[real], Y value[real], Output Curve (optional)[Curve]) [static]DescriptionTranslate a curve |
Input Curve
X translation value
Y translation value
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTranslate curve m by x=0.2, y=0.3 and store as curve p p = Operate.Translate(m,0.2,0.3);
|
Tti(Upper Rib Acceleration[Curve], Lower Rib Acceleration[Curve], T12 Acceleration[Curve]) [static]DescriptionThorax Trauma Index. |
Upper Rib Acceleration Curve
Lower Rib Acceleration Curve
T12 Acceleration Curve
ReturnsTTI value Return typereal |
ExampleCalculate TTI using curves x,y and z as inputs. val = Operate.TTi(x,y,z);
|
Va(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionConvert velocity spectrum to an acceleration spectrum |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m and store as curve p p = Operate.Va(m);
|
Vc(Input Curve[Curve], A[real], B[real], Calculation method[string], Output Curve (optional)[Curve]) [static]DescriptionViscous Criteria calculate. The VC calculation can be done using 2 different calculation methods ECER95 and IIHS. |
Input Curve
Constant A
Constant B
Either ECER95 or IIHS.
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate VC for curve m, using A=1.3, B=0.229 and the ECER95 method p = Operate.Vc(m,1.3,0.229,"ECER95");
|
Vd(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionConvert velocity spectrum to a displacment spectrum |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m and store as curve p p = Operate.Vd(m);
|
Vec(First Curve[Curve], Second Curve[Curve or real], Third Curve[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionVector magnitude of 3 curves |
First Curve
Second Curve
Second Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate vector magnitude of curves m,n,o and store as curve p p = Operate.Vec(m,n,o);
|
Vec2d(First Curve[Curve], Second Curve[Curve or real], Output Curve (optional)[Curve]) [static]DescriptionVector magnitude of 2 curves |
First Curve
Second Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleCalculate vector magnitude of curves m and n and store as curve p p = Operate.Vec2d(m,n);
|
Wif(First Curve[Curve], Second Curve[Curve]) [static]DescriptionWeigthed Integrated Factor (WIFAC) Correlation function. |
First Curve
Second Curve
ReturnsCorrelation value Return typereal |
ExampleCalculate the correlation between curves m and n. val = Operate.Wif(m,n);
|
Window(Input Curve[Curve], Window Type[string], percentage lead in (optional)[real], Output Curve (optional)[Curve]) [static]DescriptionApply a smoothing window to a curve |
Input Curve
Window type to apply (Hanning, cosine or exponetial)
percentage lead in for cosine window
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleApply a hanning window to curve m and store as curve p p = Operate.Window(m,"Hanning");
|
Zero(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionTranslate curve to 0,0 |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTranslate curve m to (0,0) and store as curve p p = Operate.Zero(m);
|
ZeroX(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionTranslate curve to X=0.0 |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTranslate curve m to X=0 and store as curve p p = Operate.ZeroX(m);
|
ZeroY(Input Curve[Curve], Output Curve (optional)[Curve]) [static]DescriptionTranslate curve to Y=0.0 |
Input Curve
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleTranslate curve m to Y=0 and store as curve p p = Operate.ZeroY(m);
|
dB(Input Curve[Curve], Reference Value[real], Output Curve (optional)[Curve]) [static]DescriptionConverts a curve to dB (y = 20.0*log(y/yref)) |
Input Curve
Reference value
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleConvert curve m to dB's using a reference value of 10.0 and store as curve p p = Operate.dB(m,10.0);
|
dBA(Input Curve[Curve], Weighting Type[String], Output Curve (optional)[Curve]) [static]DescriptionApplies A-weighting to a curve (convert from dB to dBA) |
Input Curve
Apply either Narrow band (narrow) or Octave band (octave) A weighting
Curve to overwrite
ReturnsCurve object or NULL Return typeCurve |
ExampleApply narrow band A-weighting to convert curve m from dB to dBA and store as curve p p = Operate.dBA(m,"narrow");
|