aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/expression/simple_interpolate.h
blob: 92cc29904ebde093f39514238538e18db055c7dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vector>

namespace search::expression {

/*
 * Perform simple interpolation for interpolatedlookup function
 * in grouping expression.
 */
double simple_interpolate(const std::vector<double>& v, double lookup) noexcept;

}