2.1.22.2.1.7 create_response_data


Description

Generate Responses data.

Syntax

int create_response_data( int nSize, double * pResponse, double dFc1, double dFc2, int responseType = LOW_PASS_FILTERING )

Parameters

nSize
[input] number of points of the Responses data
pResponse
[output] the result of Responses data
dFc1
[input] the lower bound of the frequency.
dFc2
[input] the upper bound of the frequency.
responseType
[input] the response type, now it can be one of the following,
LOW_PASS_FILTERING, // low-pass filtering;
HIGH_PASS_FILTERING, // high-pass filtering;
BAND_PASS_FILTERING, // band-pass filtering;
BAND_BLOCK_FILTERING, // band-block filtering;

Return

Returns 0 for success or error codes for failure.

Examples

EX1

#include <..\OriginLab\fft.h>
void create_response_data_ex1()
{
    vector vRes(8);
    create_response_data(8, vRes, 0.1, 0.3, BAND_PASS_FILTERING);
}

Remark

See Also

Header to Include

fft.h

Reference