---
name: "phi.hpp"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/phi.hpp"
---

# phi.hpp(3)

## NAME

src/mlpack/methods/gmm/phi.hpp -

## SYNOPSIS

### Namespaces

 **mlpack**\
 *Linear algebra utility functions, generally performed on matrices or vectors.*   **mlpack::gmm**\
 *Gaussian Mixture Models.*

### Functions

double **mlpack::gmm::phi** (const double x, const double mean, const double var)\
 *Calculates the univariate Gaussian probability density function.*  double **mlpack::gmm::phi** (const arma::vec &x, const arma::vec &mean, const arma::mat &cov)\
 *Calculates the multivariate Gaussian probability density function.*  double **mlpack::gmm::phi** (const arma::vec &x, const arma::vec &mean, const arma::mat &cov, const std::vector\< arma::mat \> &d\_cov, arma::vec &g\_mean, arma::vec &g\_cov)\
 *Calculates the multivariate Gaussian probability density function and also the gradients with respect to the mean and the variance.*  void **mlpack::gmm::phi** (const arma::mat &x, const arma::vec &mean, const arma::mat &cov, arma::vec &probabilities)\
 *Calculates the multivariate Gaussian probability density function for each data point (column) in the given matrix, with respect to the given mean and variance.*

## Detailed Description

**Author:**

Parikshit Ram (pram@cc.gatech.edu)

This file computes the Gaussian probability density function

This file is part of MLPACK 1.0.10.

MLPACK is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

MLPACK 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 Lesser General Public License for more details (LICENSE.txt).

You should have received a copy of the GNU General Public License along with MLPACK. If not, see http://www.gnu.org/licenses/.

Definition in file **phi.hpp**.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
