tmp
This commit is contained in:
@@ -64,9 +64,9 @@ void average_radian_spec(const array<double> &in_freq, const array<double> &in_p
|
||||
|
||||
if (!bin.empty())
|
||||
{
|
||||
bin_arr.import_vector(bin);
|
||||
out_power[i] = bin_arr.mean();
|
||||
out_std[i] = bin_arr.std();
|
||||
vector2array(bin, bin_arr);
|
||||
out_power[i] = mean(bin_arr);
|
||||
out_std[i] = gctl::std(bin_arr);
|
||||
}
|
||||
}
|
||||
return;
|
||||
@@ -83,10 +83,10 @@ int main(int argc, char const *argv[]) try
|
||||
_2d_matrix sig(M, N);
|
||||
_1d_array X(N), Y(M);
|
||||
_1d_array U(N), V(M);
|
||||
X.sequence(-1.0, dT);
|
||||
Y.sequence(-1.0, dT);
|
||||
U.sequence(-1.0*freq, 2.0*freq/(N - 1));
|
||||
V.sequence(-1.0*freq, 2.0*freq/(M - 1));
|
||||
sequence(X, -1.0, dT);
|
||||
sequence(Y, -1.0, dT);
|
||||
sequence(U, -1.0*freq, 2.0*freq/(N - 1));
|
||||
sequence(V, -1.0*freq, 2.0*freq/(M - 1));
|
||||
|
||||
double t;
|
||||
double f1 = 40.0;
|
||||
@@ -129,7 +129,7 @@ int main(int argc, char const *argv[]) try
|
||||
|
||||
_1d_array out_freq, out_power, out_std;
|
||||
out_freq.resize(150);
|
||||
out_freq.sequence(1.0, 1.0);
|
||||
sequence(out_freq, 1.0, 1.0);
|
||||
average_radian_spec(pro_freq, pro_spec, out_freq, out_power, out_std);
|
||||
|
||||
std::ofstream ofile;
|
||||
|
Reference in New Issue
Block a user