Computed Function (Examples)

Computed Function (Examples)

 Here, is the list of all the computed functions in StellarAi

 

Sr. No.

   Computation Function

Syntax

​​​​​Description

Example

1

diff

idiff = @diff( `parameter_name` )

This function adds a new column to the data, storing the  difference between consecutive data points of selected parameters.   

InstDist = `IN_Vehicle_speed` * (@diff(`internal_time`)/3600) 

2

cumSum 

cumsum = @cumSum( `parameter_name` ) 

This function adds a new column to the data by calculating the cumulative sum. 

cumsum = @cumSum( `internal_time` ) cumsum = @cumSum( `internal_time` ) 

3

Getcurvesmoothen

curve_smoothen = @getCurveSmoothen( `parameter_name` ) 

This function adds a new column smoothening the selected parameter using 3 adjacent points. It reduces the noise from cyclic data. 

curve_smoothen = @getCurveSmoothen( `Vechicle_speed` ) 

4

GetCurveSmoothen5

curve_smoothen = @getCurveSmoothen5( `parameter_name` ) 

This function adds a new column smoothening the selected parameter using 5 adjacent points. It reduces the noise from cyclic data. 

curve_smoothen = @getCurveSmoothen5(`Vehicle_speed`)

5

GetcurvesmoothenDynamic 

curve_smoothen = @getCurveSmoothenDynamic( `parameter_name`,time_value)

This function adds a new column dynamically smoothening the selected parameter using time interval as an input to adapt to different data patterns and trends.  

curve_smoothen = @getCurveSmoothenDynamic( `vehicle_speed`,1)

 

 



    • Related Articles

    • Examples (Computations)

      Examples Computations: The example below is a very simple use of computations. In this example the @max () and @min () function fetches the maximum and minimum value of the parameter ‘ENG_Temp_Out’ respectively. In this example, the function ...
    • Adding 'Computed Parameters' to data

      Adding 'Computed Parameters' to data: A computed parameter is a StellarAi-generated data column, derived by applying mathematical expressions, logical operators, or trigonometric functions on data columns from the test files. Example: Calculation of ...
    • Examples (Functions)

      Here, is the list of all the functions built in StellarAi Sr. No. Computation Function Syntax Description Example 1 Get count of expression @countExpr(parameter_name>3000) This function counts the data points in the column for the given condition. ...
    • Adding Computations to Analysis Group

      Adding Computations to Analysis Group: Computations are essentially simple / complex mathematical expressions, logical operators, trigonometric functions whose results are shown in an information tile. Computations involve creating mathematical ...
    • Visualizing Data in StellarAi

      Data Visualizations: Prior to analyzing or visualizing data, it is necessary to understand the following terminology: Data Analysis Group: Analysis group is a virtual container, of the analysis that the User is planning to perform on the test data ...