Skip to content

Commit c64bace

Browse files
committed
Second citation from @spinkney
1 parent 8be67c6 commit c64bace

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

stan/math/prim/constraint/sum_to_zero_constrain.hpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ namespace math {
2323
* compositional data analysis", Mathematical Geology, 35 (3): 279–300,
2424
* doi:10.1023/A:1023818214614, S2CID 122844634
2525
*
26+
* This implementation is closer to the description of the same using "pivot
27+
* coordinates" in
28+
* Filzmoser, P., Hron, K., Templ, M. (2018). Geometrical Properties of Compositional Data.
29+
* In: Applied Compositional Data Analysis. Springer Series in Statistics.
30+
* Springer, Cham. https://doi.org/10.1007/978-3-319-96422-5_3
31+
*
2632
* This is a linear transform, with no Jacobian.
2733
*
2834
* @tparam Vec type of the vector
@@ -66,6 +72,12 @@ inline plain_type_t<Vec> sum_to_zero_constrain(const Vec& y) {
6672
* compositional data analysis", Mathematical Geology, 35 (3): 279–300,
6773
* doi:10.1023/A:1023818214614, S2CID 122844634
6874
*
75+
* This implementation is closer to the description of the same using "pivot
76+
* coordinates" in
77+
* Filzmoser, P., Hron, K., Templ, M. (2018). Geometrical Properties of Compositional Data.
78+
* In: Applied Compositional Data Analysis. Springer Series in Statistics.
79+
* Springer, Cham. https://doi.org/10.1007/978-3-319-96422-5_3
80+
*
6981
* This is a linear transform, with no Jacobian.
7082
*
7183
* @tparam Vec type of the vector
@@ -92,6 +104,12 @@ inline plain_type_t<Vec> sum_to_zero_constrain(const Vec& y,
92104
* compositional data analysis", Mathematical Geology, 35 (3): 279–300,
93105
* doi:10.1023/A:1023818214614, S2CID 122844634
94106
*
107+
* This implementation is closer to the description of the same using "pivot
108+
* coordinates" in
109+
* Filzmoser, P., Hron, K., Templ, M. (2018). Geometrical Properties of Compositional Data.
110+
* In: Applied Compositional Data Analysis. Springer Series in Statistics.
111+
* Springer, Cham. https://doi.org/10.1007/978-3-319-96422-5_3
112+
*
95113
* This is a linear transform, with no Jacobian.
96114
*
97115
* @tparam Jacobian unused
@@ -120,6 +138,12 @@ inline plain_type_t<Vec> sum_to_zero_constrain(const Vec& y,
120138
* compositional data analysis", Mathematical Geology, 35 (3): 279–300,
121139
* doi:10.1023/A:1023818214614, S2CID 122844634
122140
*
141+
* This implementation is closer to the description of the same using "pivot
142+
* coordinates" in
143+
* Filzmoser, P., Hron, K., Templ, M. (2018). Geometrical Properties of Compositional Data.
144+
* In: Applied Compositional Data Analysis. Springer Series in Statistics.
145+
* Springer, Cham. https://doi.org/10.1007/978-3-319-96422-5_3
146+
*
123147
* This is a linear transform, with no Jacobian.
124148
*
125149
* @tparam Jacobian unused

stan/math/prim/constraint/sum_to_zero_free.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ namespace math {
2323
* compositional data analysis", Mathematical Geology, 35 (3): 279–300,
2424
* doi:10.1023/A:1023818214614, S2CID 122844634
2525
*
26+
* This implementation is closer to the description of the same using "pivot
27+
* coordinates" in
28+
* Filzmoser, P., Hron, K., Templ, M. (2018). Geometrical Properties of Compositional Data.
29+
* In: Applied Compositional Data Analysis. Springer Series in Statistics.
30+
* Springer, Cham. https://doi.org/10.1007/978-3-319-96422-5_3
31+
*
2632
* @tparam ColVec a column vector type
2733
* @param z Vector of length K.
2834
* @return Free vector of length (K-1).

stan/math/rev/constraint/sum_to_zero_constrain.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ namespace math {
2626
* compositional data analysis", Mathematical Geology, 35 (3): 279–300,
2727
* doi:10.1023/A:1023818214614, S2CID 122844634
2828
*
29+
* This implementation is closer to the description of the same using "pivot
30+
* coordinates" in
31+
* Filzmoser, P., Hron, K., Templ, M. (2018). Geometrical Properties of Compositional Data.
32+
* In: Applied Compositional Data Analysis. Springer Series in Statistics.
33+
* Springer, Cham. https://doi.org/10.1007/978-3-319-96422-5_3
34+
*
2935
* This is a linear transform, with no Jacobian.
3036
*
3137
* @tparam T type of the vector
@@ -75,6 +81,12 @@ inline auto sum_to_zero_constrain(const T& y) {
7581
* compositional data analysis", Mathematical Geology, 35 (3): 279–300,
7682
* doi:10.1023/A:1023818214614, S2CID 122844634
7783
*
84+
* This implementation is closer to the description of the same using "pivot
85+
* coordinates" in
86+
* Filzmoser, P., Hron, K., Templ, M. (2018). Geometrical Properties of Compositional Data.
87+
* In: Applied Compositional Data Analysis. Springer Series in Statistics.
88+
* Springer, Cham. https://doi.org/10.1007/978-3-319-96422-5_3
89+
*
7890
* This is a linear transform, with no Jacobian.
7991
*
8092
* @tparam Vec type of the vector

0 commit comments

Comments
 (0)