Skip to content

Experimental / Unsupported / Legacy functions


This section should be considered as nothing more than our own internal notes and reminders on some features that are being prototyped or are under very heavy development, etc. That is, these are a) highly likely to change, b) will not necessarily use Luna's standard output mechanims, c) may be removed in future versions, and d) may be buggy, incomplete or both. Stay well clear! You've been warned!

Command Description
L1OUT Leave-one-out interpolation-based signal check
EMD Empirical mode decomposition
ED Diagnostic for electrical bridging
POL Polarity check heuristic for sleep EEG
FIP Frequency-interval plots
HR Estimate per-epoch heart rate from ECG
SPIKE Create a synthetic signal by combining part of one signal with another
ZR Calculate per-epoch Z-ratio
Option Description
signal Specify which channels/signals to include

to be completed


to be completed


Leave-one-out interpolation-based signal check


Empirical mode decomposition

Empirical mode decomposition, or the Hilbert-Huang transform (described here)


Heuristic method to spot electrical bridging

To be completed.


Polarity checks for EEG sleep signals

Heuristics to see if signals have been fliped, based on the aysmmetrical shape of slow oscillations.

To be completed.


Frequency-interval plots

Experimental method, to be completed.


A modified Pan-Tompkins algorithm for detect R peaks in the ECG

to be completed


Merges two signals

Parameter Example Description
from Original from signal
to Original to signal
new Label for new signal
wgt Weight

to be completed


Calculates per-epoch Z-ratio

Implementation of a simple heuristic designed to index sleep depth, as described here. Requires epoched 30-second EEG data. It is based on frequency ranges, which are different from Luna's default band definitions:

  • delta: 0.5 to 2hz
  • theta: 2.5 to 7.5 Hz
  • alpha: 8 to 12.5 Hz
  • beta: 13 to 30 Hz