# Adaptation terminated
# Step size = 0.0980338
# Diagonal elements of inverse mass matrix:
# 0.00726362, 0.000602332, 9.9892e-06

# Adaptation terminated
# Step size = 0.0992469
# Diagonal elements of inverse mass matrix:
# 0.0064503, 0.00051433, 9.99805e-06

# Adaptation terminated
# Step size = 0.0990735
# Diagonal elements of inverse mass matrix:
# 0.00669569, 0.000501112, 9.99333e-06

# Adaptation terminated
# Step size = 0.0873322
# Diagonal elements of inverse mass matrix:
# 0.00644375, 0.000487876, 9.99546e-06

# Adaptation terminated
# Step size = 0.0832194
# Diagonal elements of inverse mass matrix:
# 0.00780993, 0.000651482, 1.0004e-05

# Adaptation terminated
# Step size = 0.101603
# Diagonal elements of inverse mass matrix:
# 0.00650241, 0.000618162, 9.98965e-06

//
// This Stan program defines a t fit to a vector of observations.
// The code below is by Sean van der Merwe, UFS
//
// The input data is a vector 'x' and its length 'n'.
data {
  int<lower=0> n;   			    // number of observations
  vector[n] x;      				  // observations
}
// The parameters accepted by the model.
parameters {
  real<lower=0> v;            // degrees of freedom
  real<lower=0> s;            // scale parameter
  real mu;                    // location parameter
}
// The model to be estimated.
model {
  x ~ student_t(v,mu,s);      // likelihood
  v ~ exponential(0.01);      // prior on degrees of freedom
}

CXXFLAGS = -O2 -Wall $(DEBUGFLAG) -mfpmath=sse -msse2 -mstackrealign