Knee types

There is a total of four (4) types of curves and corresponding knees.

The four knee types. Four curves look like a circle inside a square. Every curve marks one corner of the square.

A graph showing 4 types of curves and their knees. All types are correctly recognized by knarrow and the correct knee will be returned in all cases. However, for ease of implementing all the methods, every input data is internally transformer to the type 2.

  1. Type 1 (the green curve) - This is the decreasing, convex type. The values themselves are getting smaller and smaller, but the rate of the change of the values is increasing. [1]

  2. Type 2 (the red curve) - This is the increasing, concave type. The values themselves are getting bigger and bigger, but the rate of the change of the values is decreasing.

  3. Type 3 (the blue curve) - This is the decreasing, concave type. Both the values themselves and the rate of change are getting smaller and smaller. [2]

  4. Type 3 (the yellow curve) - This is the increasing, convex type. Both the values themselves and the rate of change are getting bigger and bigger.

Internally, knarrow transforms all types to type 2 (the red, filled curve). This simplifies the implementation of the methods. The types are transformed as follows:

  • Type 1 is transformed as \((x, y) \rightarrow (x, 1-x)\)

  • Type 2 is transformed as \((x, y) \rightarrow (x, y)\) (trivial)

  • Type 3 is transformed as \((x, y) \rightarrow (1-x, y)\)

  • Type 4 is transformed as \((x, y) \rightarrow (1-x, 1-y)\)