/* LICENSE:
  =========================================================================
    CMPack'04 Source Code Release for OPEN-R SDK 1.1.5-r2 for ERS7
    Copyright (C) 2004 Multirobot Lab [Project Head: Manuela Veloso]
    School of Computer Science, Carnegie Mellon University
    All rights reserved.
  ========================================================================= */

#include <math.h>
#include <iostream>

#include "../../headers/random.h"
#include "../../headers/Util.h"
#include "Functions.h"

double
Gaussian::evaluate(double in, double mean, double std_dev) {
  // no longer a probability distribution but much handier for me
  static const double normalizer=1.0;///sqrt(2*M_PI);
  double x=(in-mean)/std_dev;
  double val=expf(-(x*x)/2)*normalizer/std_dev;
  
  return val;
}
