Skip to content

Commit e17834b

Browse files
committed
Fix typos in error messages
1 parent 490c8b5 commit e17834b

11 files changed

Lines changed: 11 additions & 11 deletions

stan/math/opencl/prim/exp_mod_normal_lpdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exp_mod_normal_lpdf(const T_y_cl& y, const T_loc_cl& mu,
4646
using std::isnan;
4747

4848
check_consistent_sizes(function, "Random variable", y, "Location parameter",
49-
mu, "Scale parameter", sigma, "Inv_scale paramter",
49+
mu, "Scale parameter", sigma, "Inv_scale parameter",
5050
lambda);
5151
const size_t N = max_size(y, mu, sigma, lambda);
5252
if (N == 0) {

stan/math/opencl/prim/skew_double_exponential_lpdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ skew_double_exponential_lpdf(const T_y_cl& y, const T_loc_cl& mu,
4848
using std::isnan;
4949

5050
check_consistent_sizes(function, "Random variable", y, "Location parameter",
51-
mu, "Scale parameter", sigma, "Inv_scale paramter",
51+
mu, "Scale parameter", sigma, "Inv_scale parameter",
5252
tau);
5353
const size_t N = max_size(y, mu, sigma, tau);
5454
if (N == 0) {

stan/math/opencl/prim/skew_normal_lpdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ inline return_type_t<T_y_cl, T_loc_cl, T_scale_cl, T_shape_cl> skew_normal_lpdf(
4949
using std::isnan;
5050

5151
check_consistent_sizes(function, "Random variable", y, "Location parameter",
52-
mu, "Scale parameter", sigma, "Shape paramter", alpha);
52+
mu, "Scale parameter", sigma, "Shape parameter", alpha);
5353
const size_t N = max_size(y, mu, sigma, alpha);
5454
if (N == 0) {
5555
return 0.0;

stan/math/prim/err/check_positive_ordered.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ inline void check_positive_ordered(const char* function, const char* name,
4141
<< " The element at " << stan::error_index::value << " is ";
4242
std::string msg_str(msg.str());
4343
throw_domain_error(function, name, value_of_rec(to_ref(y).coeff(0)),
44-
msg_str.c_str(), ", but should be postive.");
44+
msg_str.c_str(), ", but should be positive.");
4545
}();
4646
}
4747
check_ordered(function, name, y_ref);

stan/math/prim/prob/exp_mod_normal_cdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ inline return_type_t<T_y, T_loc, T_scale, T_inv_scale> exp_mod_normal_cdf(
3636
using T_lambda_ref = ref_type_if_not_constant_t<T_inv_scale>;
3737
static constexpr const char* function = "exp_mod_normal_cdf";
3838
check_consistent_sizes(function, "Random variable", y, "Location parameter",
39-
mu, "Scale parameter", sigma, "Inv_scale paramter",
39+
mu, "Scale parameter", sigma, "Inv_scale parameter",
4040
lambda);
4141
T_y_ref y_ref = y;
4242
T_mu_ref mu_ref = mu;

stan/math/prim/prob/exp_mod_normal_lccdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ inline return_type_t<T_y, T_loc, T_scale, T_inv_scale> exp_mod_normal_lccdf(
3838
using T_lambda_ref = ref_type_if_not_constant_t<T_inv_scale>;
3939
static constexpr const char* function = "exp_mod_normal_lccdf";
4040
check_consistent_sizes(function, "Random variable", y, "Location parameter",
41-
mu, "Scale parameter", sigma, "Inv_scale paramter",
41+
mu, "Scale parameter", sigma, "Inv_scale parameter",
4242
lambda);
4343
T_y_ref y_ref = y;
4444
T_mu_ref mu_ref = mu;

stan/math/prim/prob/exp_mod_normal_lcdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ inline return_type_t<T_y, T_loc, T_scale, T_inv_scale> exp_mod_normal_lcdf(
3838
using T_lambda_ref = ref_type_if_not_constant_t<T_inv_scale>;
3939
static constexpr const char* function = "exp_mod_normal_lcdf";
4040
check_consistent_sizes(function, "Random variable", y, "Location parameter",
41-
mu, "Scale parameter", sigma, "Inv_scale paramter",
41+
mu, "Scale parameter", sigma, "Inv_scale parameter",
4242
lambda);
4343
T_y_ref y_ref = y;
4444
T_mu_ref mu_ref = mu;

stan/math/prim/prob/exp_mod_normal_lpdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ inline return_type_t<T_y, T_loc, T_scale, T_inv_scale> exp_mod_normal_lpdf(
3636
using T_lambda_ref = ref_type_if_not_constant_t<T_inv_scale>;
3737
static constexpr const char* function = "exp_mod_normal_lpdf";
3838
check_consistent_sizes(function, "Random variable", y, "Location parameter",
39-
mu, "Scale parameter", sigma, "Inv_scale paramter",
39+
mu, "Scale parameter", sigma, "Inv_scale parameter",
4040
lambda);
4141
T_y_ref y_ref = y;
4242
T_mu_ref mu_ref = mu;

stan/math/prim/prob/skew_normal_cdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ inline return_type_t<T_y, T_loc, T_scale, T_shape> skew_normal_cdf(
3434
using T_alpha_ref = ref_type_if_not_constant_t<T_shape>;
3535
static constexpr const char* function = "skew_normal_cdf";
3636
check_consistent_sizes(function, "Random variable", y, "Location parameter",
37-
mu, "Scale parameter", sigma, "Shape paramter", alpha);
37+
mu, "Scale parameter", sigma, "Shape parameter", alpha);
3838
T_y_ref y_ref = y;
3939
T_mu_ref mu_ref = mu;
4040
T_sigma_ref sigma_ref = sigma;

stan/math/prim/prob/skew_normal_lccdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ inline return_type_t<T_y, T_loc, T_scale, T_shape> skew_normal_lccdf(
3232
using T_alpha_ref = ref_type_if_not_constant_t<T_shape>;
3333
static constexpr const char* function = "skew_normal_lccdf";
3434
check_consistent_sizes(function, "Random variable", y, "Location parameter",
35-
mu, "Scale parameter", sigma, "Shape paramter", alpha);
35+
mu, "Scale parameter", sigma, "Shape parameter", alpha);
3636
T_y_ref y_ref = y;
3737
T_mu_ref mu_ref = mu;
3838
T_sigma_ref sigma_ref = sigma;

0 commit comments

Comments
 (0)