Explorar o código

Fix scaling factor in custom obj fn display

Kirk Trombley %!s(int64=3) %!d(string=hai) anos
pai
achega
e1a39acae0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      nearest.js

+ 2 - 2
nearest.js

@@ -274,13 +274,13 @@ const updateObjective = () => {
       tex = TeXZilla.toMathML(String.raw`
         ${mathArgBest("min", "P")}
         \left[
-          ${includeX ? String.raw`I\left(P\right)` : ""}
+          ${includeX ? String.raw`${includeScaleFactor(muArg)}I\left(P\right)` : ""}
           ${closeCoeff === 0 ? "" : String.raw`
               -
               ${closeCoeff}
               ${qyMod("\\vec{q}")}
               \cdot
-              ${qyMod(String.raw`\vec{\mu}\left(${muArg}\right)`)}
+              ${includeScaleFactor(muArg)}${qyMod(String.raw`\vec{\mu}\left(${muArg}\right)`)}
           `}
         \right]
       `);