コード例 #1
0
 public override string ToString(int doc)
 {
     // LUCENENET specific - changed formatting to ensure the same culture is used for each value.
     return(string.Format("{0}*float({1})+{2}",
                          outerInstance.m_slope,
                          vals.ToString(doc),
                          outerInstance.m_intercept));
 }
コード例 #2
0
 public override string ToString(int doc)
 {
     // LUCENENET specific - changed formatting to ensure the same culture is used for each value.
     return(string.Format(CultureInfo.InvariantCulture, "{0}/({1}*float({2})+{3})",
                          outerInstance.m_a,
                          outerInstance.m_m,
                          vals.ToString(doc),
                          outerInstance.m_b));
 }
コード例 #3
0
 public override string ToString(int doc)
 {
     // LUCENENET specific - changed formatting to ensure the same culture is used for each value.
     return(string.Format(CultureInfo.InvariantCulture, "scale({0},toMin={1},toMax={2},fromMin={3})",
                          vals.ToString(doc),
                          outerInstance.m_min,
                          outerInstance.m_max,
                          maxSource));
 }
コード例 #4
0
 public override string ToString(int doc)
 {
     return(outerInstance.Name + '(' + vals.ToString(doc) + ')');
 }
コード例 #5
0
 public override string ToString(int doc)
 {
     return("if(" + ifVals.ToString(doc) + ',' + trueVals.ToString(doc) + ',' + falseVals.ToString(doc) + ')');
 }
コード例 #6
0
 public override string ToString(int doc)
 {
     return("map(" + vals.ToString(doc) + ",min=" + outerInstance.m_min + ",max=" + outerInstance.m_max + ",target=" + targets.ToString(doc) + ")");
 }
コード例 #7
0
 public override string ToString(int doc) // LUCENENET TODO: API - Add overload to include CultureInfo ?
 {
     return(outerInstance.m_slope + "*float(" + vals.ToString(doc) + ")+" + outerInstance.m_intercept);
 }
コード例 #8
0
 public override string ToString(int doc) // LUCENENET TODO: API - Add overload to include CultureInfo ?
 {
     return("scale(" + vals.ToString(doc) + ",toMin=" + outerInstance.m_min + ",toMax=" + outerInstance.m_max + ",fromMin=" + minSource + ",fromMax=" + maxSource + ")");
 }
コード例 #9
0
 public override string ToString(int doc)
 {
     return(outerInstance.Name + "(" + x.ToString(doc) + "," + y.ToString(doc) + ")");
 }
コード例 #10
0
 public override string ToString(int doc) // LUCENENET TODO: API - Add overload to include CultureInfo ?
 {
     return(Convert.ToString(outerInstance.m_a) + "/(" + outerInstance.m_m + "*float(" + vals.ToString(doc) + ')' + '+' + outerInstance.m_b + ')');
 }
コード例 #11
0
 public override string ToString(int doc)
 {
     return(Convert.ToString(outerInstance.m_a) + "/(" + outerInstance.m_m + "*float(" + vals.ToString(doc) + ')' + '+' + outerInstance.m_b + ')');
 }
コード例 #12
0
 public override string ToString(int doc)
 {
     return(outerInstance.slope + "*float(" + vals.ToString(doc) + ")+" + outerInstance.intercept);
 }
コード例 #13
0
 public override string ToString(int doc)
 {
     return("scale(" + vals.ToString(doc) + ",toMin=" + outerInstance.min + ",toMax=" + outerInstance.max + ",fromMin=" + minSource + ",fromMax=" + maxSource + ")");
 }