13 #include <iostream.hpp>
50 return sum / vec.
size();
60 double sequence = base;
110 double sequence = base;
113 elem(i, column) = sequence;
127 (*this)[i][
column] = vec[i];
void rowfill(int j, const dvector &v)
Fills dmatrix row at index row with values from vec.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void fill_seqadd(double, double)
Fills dvector elements with values starting from base and incremented by offset.
void colfill_seqadd(const int &, const int &, const int &)
dvector row(const dmatrix &matrix, int i)
Returns a copied row for matrix at i.
void fill_seqadd(int, int)
Fills ivector elements with values starting from base and incremented by offset.
double mean(const dvector &vec)
Returns computed mean of vec.
double norm(const d3_array &a)
Return computed norm value of a.
double std_dev(const dvector &vec)
Returns the computed standand deviation of vec.
AD_LONG_INT & elem(int i)
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double var(const dvector &vec)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void rowfill_seqadd(const int &, double, double)
Fills dmatrix row at index with elements with values starting from base and incremented by offset...
void colfill(int j, const dvector &v)
Fills dmatrix column at index column with values from vec.
unsigned int size() const
Get number of elements in array.
void fill_seqadd(const AD_LONG_INT &, const AD_LONG_INT &)
Fills ivector elements with values starting from base and incremented by offset.
dvector column(const dmatrix &matrix, int j)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.