From 5f84e00be4ae53d8c70fdd7a71c63d984dc2aeda Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@cnes.fr>
Date: Thu, 29 Sep 2016 09:24:42 +0200
Subject: [PATCH]  DOC: Fixing formulas

---
 .../Cookbook/rst/recipes/pbclassif.rst         | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/Documentation/Cookbook/rst/recipes/pbclassif.rst b/Documentation/Cookbook/rst/recipes/pbclassif.rst
index 4c1f35e791..0f5a7ce801 100644
--- a/Documentation/Cookbook/rst/recipes/pbclassif.rst
+++ b/Documentation/Cookbook/rst/recipes/pbclassif.rst
@@ -235,9 +235,9 @@ image.
   class required)
 
   - *Mode = proportional:* For each image :math:`i` and each class :math:`c`,
-    :math:`N_i( c ) = M * T_i( c ) / sum_k( T_k(c) )`
+    :math:`N_i( c ) = \frac{M * T_i( c )}{sum_k( T_k(c)}`
   - *Mode = equal:* For each image :math:`i` and each class :math:`c`,
-    :math:`N_i( c ) = M / L`
+    :math:`N_i( c ) = \frac{M}{L}`
   - *Mode = custom:* For each image :math:`i` and each class :math:`c`,
     :math:`N_i( c ) = M_i` where :math:`M_i` is the custom requested number of samples
     for image i
@@ -246,28 +246,30 @@ image.
   class c)
 
   - *Mode = proportional:* For each image :math:`i` and each class :math:`c`,
-    :math:`N_i( c ) = M(c) * T_i( c ) / sum_k( T_k(c) )`
+    :math:`N_i( c ) = M(c) * \frac{T_i( c )}{sum_k( T_k(c))}`
   - *Mode = equal:* For each image :math:`i` and each class :math:`c`,
-    :math:`N_i( c ) = M(c) / L`
+    :math:`N_i( c ) = \frac{M(c)}{L}`
   - *Mode = custom:* For each image :math:`i` and each class :math:`c`,
     :math:`Ni( c ) = M_i(c)` where :math:`M_i(c)` is the custom requested number of
     samples for each image :math:`i` and each class :math:`c`
 
 * **Strategy = percent**
+
   - *Mode = proportional:* For each image :math:`i` and each class :math:`c`,
     :math:`N_i( c ) = p * T_i(c)` where :math:`p` is the user-defined percentage
   - *Mode = equal:* For each image :math:`i` and each class :math:`c`,
-    :math:`N_i( c ) = p * sum_k(Tk(c)]/L` where :math:`p` is the user-defined percentage
+    :math:`N_i( c ) = p * \frac{sum_k(Tk(c))}{L}` where :math:`p` is the user-defined percentage
   - *Mode = custom:* For each image :math:`i` and each class :math:`c`,
     :math:`Ni( c ) = p(i) * T_i(c)` where :math:`p(i)` is the user-defined percentage for image :math:`i`
 
 * **Strategy = total**
+
   - *Mode = proportional:* For each image :math:`i` and each class :math:`c`,
-    :math:`N_i( c ) = total * (sum_k(Ti(k))/sum_kl(Tl(k))) * (Ti(c)/sum_k(Ti(k)))` where :math:`total` is the total number of samples specified
+    :math:`N_i( c ) = total * (\frac{sum_k(Ti(k))}{sum_kl(Tl(k))}) * (\frac{Ti(c)}{sum_k(Ti(k))})` where :math:`total` is the total number of samples specified
   - *Mode = equal:* For each image :math:`i` and each class :math:`c`,
-    :math:`N_i( c ) = (total / L) * (Ti(c)/sum_k(Ti(k)))` where :math:`total` is the total number of samples specified
+    :math:`N_i( c ) = (total / L) * (\frac{Ti(c)}{sum_k(Ti(k))})` where :math:`total` is the total number of samples specified
   - *Mode = custom:* For each image :math:`i` and each class :math:`c`,
-  :math:`Ni( c ) = total(i) * (Ti(c)/sum_k(Ti(k)))` where :math:`total(i)` is the total number of samples specified for image :math:`i`
+  :math:`Ni( c ) = total(i) * (\frac{Ti(c)}{sum_k(Ti(k))})` where :math:`total(i)` is the total number of samples specified for image :math:`i`
     
 * **Strategy = smallest class**
       
-- 
GitLab