56 out <<
"\nmax(|"<<d_name<<
"(i)|/(1+|"<<x_name<<
"(i)|)"
57 <<
" => |"<<d_name<<
"("<<max_k<<
")|/(1+|"<<x_name<<
"("<<max_k<<
")| = "<< max_term
58 <<
"\nmin(|"<<d_name<<
"(i)|/(1+|"<<x_name<<
"(i)|)"
59 <<
" => |"<<d_name<<
"("<<min_k<<
")|/(1+|"<<x_name<<
"("<<min_k<<
")| = "<< min_term
60 <<
"\naverage(|"<<d_name<<
"(i)|/(1+|"<<x_name<<
"(i)|) = " << av_term << std::endl;
void vector_change_stats(const DVectorSlice &x, const DVectorSlice &d, value_type *max_term, size_type *max_k, value_type *min_term, size_type *min_k, value_type *av_term)
Compute statistics for change in a vector.
AbstractLinAlgPack::size_type size_type
void print_vector_change_stats(const DVectorSlice &x, const char x_name[], const DVectorSlice &d, const char d_name[], std::ostream &out)
Compute statistics for change in a vector and output to a stream.
DenseLinAlgPack::VectorSliceTmpl< value_type > DVectorSlice
AbstractLinAlgPack::value_type value_type