uschindler commented on code in PR #16431:
URL: https://github.com/apache/lucene/pull/16431#discussion_r3676501962


##########
lucene/core/src/java/org/apache/lucene/search/DoubleValuesSource.java:
##########
@@ -46,6 +47,16 @@
  */
 public abstract class DoubleValuesSource implements SegmentCacheable {
 
+  /** Monotonicity direction of a decoder function */
+  public enum Monotonicity {
+    /** Increasing function */
+    INCREASING,

Review Comment:
   Wikipedia says:
   
   > <img width="1360" height="212" alt="image" 
src="https://github.com/user-attachments/assets/badd7728-fe7d-4fe4-a098-34687263958d";
 />
   
   Because of the `<=` in that definitiion "monitonically increasing means" 
that the function result may be constant.
   
   With strictly increasing the definition is:
   
   > <img width="1364" height="382" alt="image" 
src="https://github.com/user-attachments/assets/7d6f5de9-afae-4878-b5c6-0db2d5adb63e";
 />
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to