関数free_signal_ratio_data マニュアル

(The documentation of function free_signal_ratio_data)

Last Update: 2025/7/24


◆機能・用途(Purpose)

struct signal_ratio_data型構造体の全ての配列型メンバの動的メモリを解放する。
Release dynamic memories for all array-type members of a struct signal_ratio_data-type structure.


◆形式(Format)

#include <sequence/initialize.h>
inline void free_signal_ratio_data(struct signal_ratio_data ∗data)


◆引数(Arguments)

seq 処理対象の構造体のアドレス。 関数内でメンバtmin_long, tmax_long, ave, waveform_in_window, order, sigma_even, sigma_odd, mu_eo, mu_oe, mu, best_Ndash, noise_stddev, noise_level, Nsignal_samples, signal_ratioの動的メモリが解放され、 int型メンバに0が代入される。
The address of the target structure. Within the function, the dynamic memories for members tmin_long, tmax_long, ave, waveform_in_window, order, sigma_even, sigma_odd, mu_eo, mu_oe, mu, best_Ndash, noise_stddev, noise_level, Nsignal_samples, and signal_ratio are released and 0 is inserted to int-type members.


◆使用例(Example)

struct sequence data=read_sequence_file("data.seq1");
struct signal_ratio_data signal_ratio =sequence_signal_ratio(data,300.0,1.0,1,true);
free_signal_ratio_data(&signal_ratio);