Transistor Gijutsu, October 2014, Special Features Chapter 8,Software of the thermistor thermometer of 0.001 ° resolution, トランジスタ技術2014年10月号 特集第8章のソフトウェア 0.001℃分解能で気配もキャッチ「超敏感肌温度計」

Dependencies:   USBDevice mbed

Embed: (wiki syntax)

« Back to documentation index

ExpAvr Class Reference

ExpAvr Class Reference

指数平均を計算する(実質的なローパスフィルタ) More...

#include <ExpAvr.h>

Public Member Functions

 ExpAvr (int order, double fcutoff, double fsample)
 コンストラクタ
double getOutput (double d)
 指数平均計算

Detailed Description

指数平均を計算する(実質的なローパスフィルタ)

Definition at line 8 of file ExpAvr.h.


Constructor & Destructor Documentation

ExpAvr ( int  order,
double  fcutoff,
double  fsample 
)

コンストラクタ

Parameters:
order次数(フィルタの段数)
fcutoffカットオフ周波数[Hz]、fsampleより十分小さいこと。1/10以下を推奨。
fsampleサンプリング周波数[Hz]

Definition at line 19 of file ExpAvr.h.


Member Function Documentation

double getOutput ( double  val )

指数平均計算

指数平均を行い最新の値を返す

Parameters:
dフィルタの入力値
Returns:
フィルタの出力値
Parameters:
doubleval 入力値
Returns:
double 移動平均後の値

Definition at line 6 of file ExpAvr.cpp.