00001 /* 00002 * $Id$ 00003 * 00004 * Author: David Fournier 00005 * Copyright (c) 2008-2012 Regents of the University of California 00006 */ 00011 #include "fvar.hpp" 00012 00017 double mean(const dmatrix& m) 00018 { 00019 double tmp = sum(m) / size_count(m); 00020 return tmp; 00021 }