1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! APbase: high-performance automatic map generation.
//!
//! The public top-level API is intentionally small: use [`Map`] or
//! [`create_map`] to create maps, and [`config`](static@config) for process-wide runtime
//! settings. Lower-level geostatistical building blocks remain available from
//! their dedicated modules.
//!
//! ```no_run
//! use apbase::{Map, MapOptions};
//!
//! # fn load() -> (Vec<f64>, Vec<f64>, Vec<f64>) { unimplemented!() }
//! let (x, y, z) = load();
//! apbase::config.set("n_threads", 4)?;
//!
//! let result = Map::new(MapOptions::new(10.0)).call(&x, &y, &z)?;
//! println!("{}", result.method); // "idw" or "kriging"
//! let (raster_x, raster_y, raster_z) = result.to_raster()?; // NaN outside the boundary
//! # let _ = (raster_x, raster_y, raster_z);
//!
//! let result = apbase::create_map(&x, &y, &z, MapOptions::new(10.0))?;
//! # let _ = result;
//! # Ok::<(), apbase::common::ApbaseError>(())
//! ```
pub use config;
pub use ;
/// Package version.
pub const __version__: &str = env!;