Marple Docs
  • Introduction
  • Marple Insight
    • Welcome
      • What is Marple Insight?
      • FAQ
      • Feedback
      • Release Notes
      • Roadmap
    • Setup and Configuration
      • Data connection
        • Supported Databases
          • Azure Data Explorer (ADX)
          • Microsoft Fabric
          • TimescaleDB & PostgreSQL
          • Mireo Spacetime
          • InfluxDB (Beta)
        • Connection configuration
          • Required Queries
          • Optional Queries
          • Templating
      • Deployment
        • Infrastructure
        • Identity Providers
        • Hardware
      • API
      • Python SDK
    • User Manuals
      • Data Library
      • Visualisation
        • Add Data Sets
        • Signal List
        • Functions
        • Plot types
          • Time Series
            • Signal Settings
            • Limits and Stacking
            • Zooming
            • Cursors
            • Text data
          • Scatter
          • Map
          • Frequency (FFT)
          • Aggregates
        • Mouse Actions
        • Tabs
        • Reorganise Plots
        • Compare data
        • Realtime
        • Export image
      • Motorsport Package
      • Flight Testing Package
      • Projects
      • Sharing
      • Team and accounts
        • Workspaces
        • Account Types
      • Keyboard Shortcuts
  • Marple Files
    • Welcome
      • What is Marple Files?
      • Quick Start
      • FAQ
      • Release Notes
    • User Manuals
      • Data
        • File Types
        • Time Precision
        • Data Points
        • Upload Data
        • Organise Data
        • Influx DB
      • Visualisation
        • Overview
        • Plot types
        • Mouse & Keyboard
        • Calculated Signals
        • Overlay Data Sets
        • Projects
        • Annotations
      • Analysis
        • Metric Builder
        • SQL Editor
        • Marple AI (GPT)
      • Reporting
        • Create Reports
        • View Reports
        • Share Reports
        • From data library to reports
      • Sharing and Accounts
        • Sharing
        • Team
        • Settings
      • For developers
        • API Access Tokens
        • API Guide
        • Python
Powered by GitBook
On this page
  • Standard Functions
  • Custom functions
  1. Marple Files
  2. User Manuals
  3. Visualisation

Calculated Signals

Create new signals by applying filters or combining different signals.

PreviousMouse & KeyboardNextOverlay Data Sets

Last updated 3 months ago

There are two types of calculations you can perform on signals:

  • Standard functions

  • Custom functions

Standard Functions

To create a standard function, select the signal on which you want to do a calculation, hit the 'Functions' button and you should see a preview window appear.

‍

‍

There are multiple standard functions, a detailed explanation can be found here:

Moving Average

Central moving average that takes the average of (window / 2) samples to the left, the current sample and (window / 2 - 1) samples to the right.

Parameters:

  • Window

Cumulative sum

Calculates the sum of all samples to the left and the current sample.

Parameters:

  • Gain

Derivative

Calculates the backwards discrete derivative of the signal.

d[k] = (v[k] - v[k-1]) / (t[k] - t[k-1])

Parameters:

  • Gain

Difference

Calculates the backwards difference of the signal.

Calibration

Calculates a simple calibration for a signal.

c = (v + offset) * scale

Parameters:

  • scale

  • offset

Remove Outliers (custom)

Removes outliers from a signal. All values outside the bounds will be removed.

Parameters:

  • max bound

  • min bound

Remove Outliers (stddev)

Removes outliers from a signal: all values outside of [avg(s) - x * σ, avg(s) + x * σ] will be removed.

Parameters:

  • factor of standard deviation to define outliers

Clamping

Clamps a signal. All values outside the bounds will be clamped to the bound.

Parameters:

  • max bound

  • min bound

Zeroing

Zeroing removes the bias of a signal by subtracting the first value of the signal of all the data points.

Sample shift

Shift the entire signal with a few samples.

Parameters:

  • offset

‍‍

Custom functions

Standard functions let you create some more complex functions on data, but sometimes you just need to make a custom function where you add, subtract, .. some signals with each other. The custom functions are the place to be.

To create a custom function press the create signal button in the signal sidebar, this should by default switch to the custom function modal.

Note that in your formula, make sure the signal names are between brackets. To make things easier you can search signals on the right side and click the signal names to add them in the formula.

Supported Operators

‍

Conditional Statements

Case statements allow even more flexibility, and can be used wherever an expression is valid.

CASE WHEN condition THEN result [WHEN ...] [ELSE result] END

Examples

[sig_a]^2 + log([sig_b])/[sig_c_LP]

abs(sin([sig_a] * pi()))

case when [C.vx] > 21 then 1 else 0 end