home › Forums › # Technical Support › Output data in natural language › Reply To: Output data in natural language
OK Thank you. Your answer helped me to understand fuzzy logic and how your library works.
Any how I think I didn’t ask my question right, or maybe I don’t understand how fuzzy logic process work.
How ever i’ll try again, taking your example code on github repository:
for (int i = 0; i < 50; ++i) {
double light = ambient.getMinimum() + i * (ambient.range() / 50);
ambient.setInputValue(light);
engine.process();
FuzzyLite.logger().info(String.format(
"Ambient.input = %s -> Power.output = %s",
Op.str(light), Op.str(power.getOutputValue())));
}
Is it possible to create a statement such as:
if power.getOutputValue() belongs to HIGH then do something"
Thank you, and sorry.