Helios++
Helios software for LiDAR simulations
DiscreteTime Class Reference

Class to handle discrete time. It supports transforming from continuous time to discrete time and also transforming from discrete time to continuous time. It also supports cyclic (normalized period) and periodic (for any given period scale, which matches normalized when it is \(1\)) transforms. More...

#include <DiscreteTime.h>

Collaboration diagram for DiscreteTime:

Protected Attributes

std::size_t frequency
 The frequency \(F\) defining the discrete time. It is, how many iterations per second. More...
 
double freq
 Decimal representation of the frequency \(F\). More...
 
double period
 Decimal representation of the period \(\frac{1}{F} = F^{-1}\). More...
 
double periodScale
 The period scale \(p\) defining the period length. If it is 1.0, then it means periodic and cyclic transforms match. Otherwise, cyclic transforms work in \([0, 1)\) continuous interval and \([0, F)\) discrete interval. While periodic transforms would work in \([0, p)\) continuous interval and \([0, pF)\) discrete interval. More...
 
double freqScale
 Simply the inverse of period scale \(\frac{1}{p} = p^{-1}\). More...
 
std::size_t scaledFrequency
 How many iterations applying period scale \(p\). It is, \(pF\). More...
 
double scaledFreq
 Decimal representation of the scaled frequency \(pF\). More...
 

Detailed Description

Class to handle discrete time. It supports transforming from continuous time to discrete time and also transforming from discrete time to continuous time. It also supports cyclic (normalized period) and periodic (for any given period scale, which matches normalized when it is \(1\)) transforms.

Author
Alberto M. Esmoris Pena
Version
1.0

Member Data Documentation

◆ freq

double DiscreteTime::freq
protected

Decimal representation of the frequency \(F\).

See also
DiscreteTime::frequency
DiscreteTime::period

◆ freqScale

double DiscreteTime::freqScale
protected

Simply the inverse of period scale \(\frac{1}{p} = p^{-1}\).

See also
DiscreteTime::periodScale

◆ frequency

std::size_t DiscreteTime::frequency
protected

The frequency \(F\) defining the discrete time. It is, how many iterations per second.

See also
DiscreteTime::freq
DiscreteTime::period

◆ period

double DiscreteTime::period
protected

Decimal representation of the period \(\frac{1}{F} = F^{-1}\).

It can be understood as how many continuous time does each step take

See also
DiscreteTime::frequency
DiscreteTime::freq
DiscreteTime::periodScale

◆ periodScale

double DiscreteTime::periodScale
protected

The period scale \(p\) defining the period length. If it is 1.0, then it means periodic and cyclic transforms match. Otherwise, cyclic transforms work in \([0, 1)\) continuous interval and \([0, F)\) discrete interval. While periodic transforms would work in \([0, p)\) continuous interval and \([0, pF)\) discrete interval.

See also
DiscreteTime::toPeriodicDiscrete
DiscreteTime::toPeriodicContinuous
DiscreteTime::freqScale
DiscreteTime::period

◆ scaledFreq

double DiscreteTime::scaledFreq
protected

Decimal representation of the scaled frequency \(pF\).

See also
DiscreteTime::scaledFrequency

◆ scaledFrequency

std::size_t DiscreteTime::scaledFrequency
protected

How many iterations applying period scale \(p\). It is, \(pF\).

See also
DiscreteTime::periodScale
DiscreteTime::scaledFreq

The documentation for this class was generated from the following file: