関数sequence_times_double マニュアル

(The documentation of function sequence_times_double)

Last Update: 2023/6/28


◆機能・用途(Purpose)

時系列データに定数を掛ける(構造体\(\times\)定数)。
Multiply a constant value with a time series data (i.e., structure \(\times\) constant).


◆形式(Format)

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


◆引数(Arguments)

a 積の計算に用いる時系列データ。
The time series data used for the computation of the product.
b 掛ける定数。
The constant to be multiplied.


◆戻り値(Return value)

\(a\times b\)を表す構造体。戻り値のメンバの値は以下のようになる。
A structure that represents \(a\times 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_times_double(a,1.2);