関数sequence_plus_double マニュアル

(The documentation of function sequence_plus_double)

Last Update: 2023/6/28


◆機能・用途(Purpose)

時系列データに定数を加算する(構造体\(+\)定数)。
Add a constant value to a time series data (i.e., structure \(+\) constant).


◆形式(Format)

#include <sequence/operation.h>
inline struct sequence sequence_plus_double
(struct sequence a,const double b)


◆引数(Arguments)

a 和の計算に用いる時系列データ。
The time series data used for the computation of the summation.
b 加える定数。
The constant to be added.


◆戻り値(Return value)

\(a+b\)を表す構造体。戻り値のメンバの値は以下のようになる。
A structure that represents \(a+b\). The values of members of the return value are as below.

戻り値のメンバ
Member of the return value

Value
size a.size
t0 a.t0
dt a.dt
各iに対するvalue[i]
value[i] for each \(i\)
a.value[i]+b


◆使用例(Example)

struct sequence a;
struct sequence c=sequence_plus_double(a,1.2);