private static string BuildFilterStringItem(EFilterType FilterItemType, string Name, EConnection Connection, EFunction Function, EOperator Operator, string ValueType, string Value, string Value1Type, string Value1, string Value2Type, string Value2) { StringBuilder current = new StringBuilder(); current.Append("{"); current.Append("" + Name + ":{"); current.Append($"{ Operator.ToString().ToLower()}" + ":{"); if (FilterItemType == EFilterType.MultiValue) { current.AppendFormat("Value1Type:\"{0}\",", Value1Type); current.AppendFormat("Value1:\"{0}\",", Value1); current.AppendFormat("Value2Type:\"{0}\",", Value2Type); current.AppendFormat("Value2:\"{0}\"", Value2); } else { current.AppendFormat("ValueType:\"{0}\",", ValueType); current.AppendFormat("Value:\"{0}\"", Value); } current.Append("}"); current.Append("}"); current.Append("}"); return(current.ToString()); }
/// <summary> /// Determines how/if the data will be transformed. /// </summary> public GaussianProcesses FilterType(EFilterType newType) { Impl.setFilterType(new weka.core.SelectedTag((int)newType, weka.classifiers.functions.GaussianProcesses.TAGS_FILTER)); return(this); }
/// <summary> /// Determines how/if the data will be transformed. /// </summary> public SMOreg FilterType(EFilterType newType) { Impl.setFilterType(new weka.core.SelectedTag((int)newType, weka.classifiers.functions.SMOreg.TAGS_FILTER)); return(this); }