関数imsequence2sequence_abs マニュアル

(The documentation of function imsequence2sequence_abs)

Last Update: 2021/12/7


◆機能・用途(Purpose)

struct imsequence型構造体をstruct sequence型構造体に変換する。
変換方法: 絶対値を取る。
Convert a struct imsequence-type structure to struct sequence-type, by taking the absolute values.


◆形式(Format)

#include <sequence/convert.h>
inline struct sequence imsequence2sequence_abs(struct imsequence seq)


◆引数(Arguments)

seq 変換前の構造体。
The structure before the conversion.


◆戻り値(Return value)

変換後の構造体。戻り値のメンバの値は以下のようになる。
The structure after the conversion. The values of members of the return value are as below.

戻り値のメンバ
Member of the return value
値
Value
size seq.size
t0 seq.t0
dt seq.dt
各\(i\)に対するvalue[i]
value[i] for each \(i\)
\(\sqrt{(\mbox{seq.value[i].r})^2+(\mbox{seq.value[i].i})^2}\)
その他のメンバ
The other members
関数get_sequence_memory (sequence/initialize.h)の仕様に従う。
Determined based on function get_sequence_memory (sequence/initialize.h).


◆使用例(Example)

struct imsequence imseq;
struct sequence absseq=imsequence2sequence_abs(imseq);