private static ChartValues <ObservablePoint> GetFunctionResult(IFuzzyFunction func)
        {
            var result = new ChartValues <ObservablePoint>();
            var points = FuzzyFunctionToChartValuesConvertor.GetValues(func);

            result.AddRange(points);

            return(result);
        }
Ejemplo n.º 2
0
 public static LineSeries CreateLineSeries(Term term)
 {
     return(new LineSeries
     {
         LineSmoothness = term.FuzzyFunction.Type ==
                          FuzzyLogic.Functions.FuzzyFunctionType.Smoothness? 1 : 0,
         Values = FuzzyFunctionToChartValuesConvertor.GetValues(term.FuzzyFunction),
         PointGeometry = null,
         Title = term.Name
     });
 }
Ejemplo n.º 3
0
 private void UpdateValues(Term term)
 {
     mTermDictionary[term].Values = FuzzyFunctionToChartValuesConvertor.GetValues(term.FuzzyFunction);
 }