MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getEquation

Method getEquation

ij/src/main/java/ij/macro/Functions.java:6182–6200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6180 }
6181
6182 double getEquation() {
6183 int index = (int)getFirstArg();
6184 Variable name = getNextVariable();
6185 Variable formula = getNextVariable();
6186 Variable macroCode=null;
6187 interp.getToken();
6188 if (interp.token==',') {
6189 macroCode = getVariable();
6190 interp.getToken();
6191 }
6192 if (interp.token!=')')
6193 interp.error("')' expected");
6194 checkIndex(index, 0, CurveFitter.fitList.length-1);
6195 name.setString(CurveFitter.fitList[index]);
6196 formula.setString(CurveFitter.fList[index]);
6197 if (macroCode != null)
6198 macroCode.setString(CurveFitter.fMacro[index]);
6199 return Double.NaN;
6200 }
6201
6202 void setMinAndMax() {
6203 double min = getFirstArg();

Callers 1

fitMethod · 0.95

Calls 7

getFirstArgMethod · 0.95
getNextVariableMethod · 0.95
getVariableMethod · 0.95
checkIndexMethod · 0.95
setStringMethod · 0.95
getTokenMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected