# R/EnsCorr.R In MeteoSwiss/easyVerification: Ensemble Forecast Verification for Large Data Sets

#### Documented in EnsCorr

```# EnsCorr.R Correlation with Ensemble Mean
#
#
#     This program is free software: you can redistribute it and/or modify
#     the Free Software Foundation, either version 3 of the License, or
#     (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
#
#     You should have received a copy of the GNU General Public License
#     along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

#' Correlation with Ensemble Mean
#'
#' Computes the ensemble mean correlation (Pearson) with the veryfing
#' observations.
#'
#' @param ens n x k matrix of n forecasts from k ensemble members
#' @param obs n verifying observations
#'
#' @examples
#' tm <- toymodel()
#'
#' ## compute correlation directly
#' EnsCorr(tm\$fcst, tm\$obs)
#'
#' ## compute correlation using veriApply
#' veriApply("EnsCorr", tm\$fcst, tm\$obs)
#'