home › Forums › # Technical Support › Migration to jfuzzylite › Reply To: Migration to jfuzzylite
November 18, 2018 at 08:04
#6263
Member
Solved. The error was in Ramp values:
distance.addTerm(new Ramp("low", 0.0, 20.0));
proximity.addTerm(new Ramp("immediate", 0.0, 30.0));
Should be:
distance.addTerm(new Ramp("low", 20.0, 0.0));
proximity.addTerm(new Ramp("immediate", 30.0, 0.0));
But, I find another issue. I’m exporting this code to R:
RScriptExporter exporter = new RScriptExporter();
exporter.toFile(new File("plot.r"), engine);
When I’m trying to execute, RStudio gives me the following error:
Error: Discrete value supplied to continuous scale
In addition: Warning message:
Error: Discrete value supplied to continuous scale