# refine (List, Maxinterval)

**refine (List, Maxinterval) → List of number**

When given a list of numbers, this function arranges and creates a new list where the difference between any two consecutive values is not greater than a specified maximum range (Maxinterval). The function adds new elements to the list to ensure that the required maximum range between consecutive values is met.

**Example:**

```xml
<O N="refineObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 8/23/2023 -->
    <P N="List1" V="[0,25,40]" />
    <P N="List2" V="refine(List1,5)" />
    <P N="List3" V="[0.2,2,1]" />
    <P N="List4" V="refine(List3,0.3)" />
</O>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2167865446/image-20230823-153523.png?api=v2) To view this example in the library, see (<https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objid4dlgij2foqcdsch8ta8895> )
