lookup_table.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2011 Equinor ASA, Norway.
3
4 The file 'lookup_table.h' is part of ERT - Ensemble based Reservoir Tool.
5
6 ERT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 ERT is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
16 for more details.
17*/
18
19#ifndef ERT_LOOKUP_TABLE_H
20#define ERT_LOOKUP_TABLE_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <ert/util/double_vector.hpp>
27
28typedef struct lookup_table_struct lookup_table_type;
29
30
31 void lookup_table_set_data( lookup_table_type * lt , double_vector_type * x , double_vector_type * y , bool data_owner );
32 lookup_table_type * lookup_table_alloc( double_vector_type * x , double_vector_type * y , bool data_owner);
34 void lookup_table_append( lookup_table_type * lt , double x , double y);
36 double lookup_table_interp( lookup_table_type * lt , double x);
46
47
48
49#ifdef __cplusplus
50}
51#endif
52#endif
double lookup_table_get_max_value(lookup_table_type *lookup_table)
void lookup_table_append(lookup_table_type *lt, double x, double y)
bool lookup_table_has_high_limit(const lookup_table_type *lt)
double lookup_table_get_min_arg(lookup_table_type *lookup_table)
int lookup_table_get_size(const lookup_table_type *lt)
void lookup_table_set_high_limit(lookup_table_type *lt, double limit)
double lookup_table_interp(lookup_table_type *lt, double x)
double lookup_table_get_min_value(lookup_table_type *lookup_table)
lookup_table_type * lookup_table_alloc(double_vector_type *x, double_vector_type *y, bool data_owner)
double lookup_table_get_max_arg(lookup_table_type *lookup_table)
struct lookup_table_struct lookup_table_type
Definition: lookup_table.hpp:28
bool lookup_table_has_low_limit(const lookup_table_type *lt)
void lookup_table_set_low_limit(lookup_table_type *lt, double limit)
lookup_table_type * lookup_table_alloc_empty()
void lookup_table_set_data(lookup_table_type *lt, double_vector_type *x, double_vector_type *y, bool data_owner)
void lookup_table_free(lookup_table_type *lt)
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)