> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fuzzy interval visual editor

> Specify fuzzy intervals graphically with the Fuzzy Interval Editor in ABBYY FlexiLayout Studio, adjusting slopes, extreme points, and non-penalized points.

ABBYY FlexiLayout Studio offers a visual editor to make specifying fuzzy intervals easier.

You can open the fuzzy interval editor in one of two ways:

* From the **Properties** dialog box of a **Character String** element: on the **Character String** tab, click the <img src="https://mintcdn.com/abbyy/fmgRWFNHKYN2MLSg/images/flexi-capture/fls/Button_points.gif?s=494881c954b44aa8b446880d31ab4d12" alt="Browse button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="19" height="18" data-path="images/flexi-capture/fls/Button_points.gif" /> button.
* From the main menu, select **Tools → Fuzzy Interval Editor…**.

<Frame>
  <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/fuzzy_int.gif?fit=max&auto=format&n=lqYknuOmCa79141v&q=85&s=885ec635b5e7a663b94d6e096ca57538" alt="Screenshot of the Fuzzy Interval Editor in ABBYY FlexiLayout Studio, showing the interval graph with the quality axis, the zoom and move controls, and the numeric fields for the left, right, and non-penalized points." width="621" height="590" data-path="images/flexi-capture/fls/fuzzy_int.gif" />
</Frame>

## Graph axes and coordinates

The **Fuzzy Interval Editor** displays a graph representation of the fuzzy interval. The vertical axis measures the quality of the hypothesis, and the horizontal axis measures the linear dimensions or the number of characters. The graph also shows the coordinates where the fuzzy interval borders intersect the horizontal axis.

## Zoom and pan the graph

The **Zoom in** and **Zoom out** buttons change the horizontal and vertical scales synchronously. You can also zoom a selected image area with the **Zoom selected area** button. The <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/int_right.gif?fit=max&auto=format&n=lqYknuOmCa79141v&q=85&s=22e9893e605ecc95a343ded44033b040" alt="Move right button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="16" height="21" data-path="images/flexi-capture/fls/int_right.gif" /> <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/int_left.gif?fit=max&auto=format&n=lqYknuOmCa79141v&q=85&s=3205b441eb3265d075687ce5d55130ee" alt="Move left button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="16" height="21" data-path="images/flexi-capture/fls/int_left.gif" /> <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/int_up.gif?fit=max&auto=format&n=r-nfa7jujx5b9gKX&q=85&s=5042229896ef2b4bc1daddbca90a1481" alt="Move up button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="22" height="16" data-path="images/flexi-capture/fls/int_up.gif" /> <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/int_down.gif?fit=max&auto=format&n=lqYknuOmCa79141v&q=85&s=484a20da38daa3bc6b1b2be146509e0e" alt="Move down button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="22" height="16" data-path="images/flexi-capture/fls/int_down.gif" /> buttons move the area in the corresponding direction. To fit the interval, click <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/int_fit.gif?fit=max&auto=format&n=lqYknuOmCa79141v&q=85&s=3cfc94c6c48425e3d3af75c3813cee39" alt="Fit interval button" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="22" height="21" data-path="images/flexi-capture/fls/int_fit.gif" />.

## Specify the interval

The fields under the graph contain the numerical values of the interval. You can specify the interval either by editing the graph with your mouse or by entering the numerical values in the corresponding fields.

The visual fuzzy interval editor operates in two modes:

* **Distance** – Fuzzy intervals for units of measurement, which may be fractional. Select **Distance** under **Interval type**.
* **Integer** – Fuzzy intervals for positive integers, such as string length in characters. Select **Integer** under **Interval type**.

<Note>
  If you open the fuzzy interval editor from the **Properties** dialog box of a **Character String** element, one of the two modes is automatically selected depending on the field from which you called the editor.
</Note>

### Edit the graph

You can change the interval by moving the green markers to the right or to the left with your mouse. You can also change the angle of the slopes. Some restrictions apply. For example, you cannot move the left marker to the right of the right marker. The corresponding numerical values appear in the fields under the graph.

### Change the numerical values directly

The fields correspond to the representation of the fuzzy interval in the program:

| Field                            | Description                                                                                                                                |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Left**                         | The left extreme point of the interval.                                                                                                    |
| **Left non-penalized**           | The left non-penalized point.                                                                                                              |
| **Right**                        | The right extreme point of the interval.                                                                                                   |
| **Right non-penalized**          | The right non-penalized point.                                                                                                             |
| **Left slope** / **Right slope** | Set the slope of the graph's sides, which represents the penalty coefficient for deviating by a **Distance** from the non-penalized point. |

Changing a slope moves the corresponding extreme point without changing the non-penalized point, and changing an extreme point or a non-penalized point changes the corresponding slope. When you edit any field, the graph and the values of the dependent fields update accordingly.

## Save the results

If the fuzzy interval editor was called from the **Properties** dialog box of a **Character String** element, clicking **OK** automatically inserts the fuzzy interval into the corresponding field of the dialog box.

If the fuzzy interval editor was called from the **Tools** menu, you can copy the fuzzy interval from the **Result** field or from the **Code** field. The **Code** field lets you paste the code onto the **Advanced** tab, for example, when using a fuzzy interval as an argument of the **FuzzyQuality** function.

For more information, see [Search for elements with Nearest and FuzzyQuality](/flexi-capture/fls/tips-tricks/date9).
