PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::KahanWindowSum Class Reference

#include <window_sum.hpp>

Public Member Functions

 KahanWindowSum (int length)
 
double push (double src)
 
void note_no_push ()
 
double repush (double src)
 
void unpush ()
 
int count () const
 
int length () const
 
bool seeded () const
 
double sum () const
 
void observe_owned_storage (OwnedStorage &out) const noexcept
 

Detailed Description

Definition at line 24 of file window_sum.hpp.

Constructor & Destructor Documentation

◆ KahanWindowSum()

pineforge::KahanWindowSum::KahanWindowSum ( int length)
explicit

References length().

Member Function Documentation

◆ push()

double pineforge::KahanWindowSum::push ( double src)

◆ note_no_push()

void pineforge::KahanWindowSum::note_no_push ( )

◆ repush()

double pineforge::KahanWindowSum::repush ( double src)

◆ unpush()

void pineforge::KahanWindowSum::unpush ( )

◆ count()

int pineforge::KahanWindowSum::count ( ) const
inline

Definition at line 61 of file window_sum.hpp.

◆ length()

int pineforge::KahanWindowSum::length ( ) const
inline

Definition at line 62 of file window_sum.hpp.

Referenced by KahanWindowSum().

◆ seeded()

bool pineforge::KahanWindowSum::seeded ( ) const
inline

Definition at line 63 of file window_sum.hpp.

◆ sum()

double pineforge::KahanWindowSum::sum ( ) const
inline

Definition at line 64 of file window_sum.hpp.

◆ observe_owned_storage()

void pineforge::KahanWindowSum::observe_owned_storage ( OwnedStorage & out) const
inlinenoexcept

Definition at line 65 of file window_sum.hpp.

References pineforge::observe_owned_members().


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