Skip to content
jsonW Paper GitHub

Search and ranking

Multilinear grid: interpolation straight from the file

A table of values over axes, such as shipping cost by distance and weight, becomes a score through bilinear, trilinear or higher interpolation, inside the scoring request.

· jsonW 1.3.11

The problem

Price, shipping or risk tables usually have values at only some points. For a point in between, the system needs its own interpolation code, and every team writes its own.

How jsonW solves it

The grid request uses columns of the row as coordinates and returns, as the score, the value interpolated between the neighboring grid points: bilinear with two axes, trilinear with three, and so on. Like the other avaliar requests, it returns the top k rows by score.

{"grade":{"campos":["x","y"],"arquivo":"g.jsw"}}

The grid request, in the same format as the ABI.

Where it is

In the tool, wjsw avaliar … grade. In version 1.3.11, the format of the grid table is not yet in the public documentation, so the paper does not show an output.

Read the full section in the paper →