detectApproximationType function

Detect the type of likelihood approximation based on the data format