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

            result.AddRange(points);

            return(result);
        }
示例#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
     });
 }
示例#3
0
 private void UpdateValues(Term term)
 {
     mTermDictionary[term].Values = FuzzyFunctionToChartValuesConvertor.GetValues(term.FuzzyFunction);
 }