#include "common.h"
#include <stdio.h>
#include <math.h>
#include <fcntl.h>
#include <strings.h>
#include "machine.h"
#include "vmath.h"
#include "bu.h"
#include "bn.h"
Include dependency graph for tabdata.c:
Go to the source code of this file.
Functions | |
void | bn_table_free (struct bn_table *tabp) |
void | bn_tabdata_free (struct bn_tabdata *data) |
void | bn_ck_table (const struct bn_table *tabp) |
bn_table * | bn_table_make_uniform (int num, double first, double last) |
void | bn_tabdata_add (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2) |
void | bn_tabdata_mul (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2) |
void | bn_tabdata_mul3 (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2, const struct bn_tabdata *in3) |
void | bn_tabdata_incr_mul3_scale (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2, const struct bn_tabdata *in3, register double scale) |
void | bn_tabdata_incr_mul2_scale (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2, register double scale) |
void | bn_tabdata_scale (struct bn_tabdata *out, const struct bn_tabdata *in1, register double scale) |
void | bn_table_scale (struct bn_table *tabp, register double scale) |
void | bn_tabdata_join1 (struct bn_tabdata *out, const struct bn_tabdata *in1, register double scale, const struct bn_tabdata *in2) |
void | bn_tabdata_join2 (struct bn_tabdata *out, const struct bn_tabdata *in1, register double scale2, const struct bn_tabdata *in2, register double scale3, const struct bn_tabdata *in3) |
void | bn_tabdata_blend2 (struct bn_tabdata *out, register double scale1, const struct bn_tabdata *in1, register double scale2, const struct bn_tabdata *in2) |
void | bn_tabdata_blend3 (struct bn_tabdata *out, register double scale1, const struct bn_tabdata *in1, register double scale2, const struct bn_tabdata *in2, register double scale3, const struct bn_tabdata *in3) |
double | bn_tabdata_area1 (const struct bn_tabdata *in) |
double | bn_tabdata_area2 (const struct bn_tabdata *in) |
double | bn_tabdata_mul_area1 (const struct bn_tabdata *in1, const struct bn_tabdata *in2) |
double | bn_tabdata_mul_area2 (const struct bn_tabdata *in1, const struct bn_tabdata *in2) |
int | bn_table_find_x (const struct bn_table *tabp, double xval) |
fastf_t | bn_table_lin_interp (const struct bn_tabdata *samp, register double wl) |
bn_tabdata * | bn_tabdata_resample_max (const struct bn_table *newtable, const struct bn_tabdata *olddata) |
bn_tabdata * | bn_tabdata_resample_avg (const struct bn_table *newtable, const struct bn_tabdata *olddata) |
int | bn_table_write (const char *filename, const struct bn_table *tabp) |
bn_table * | bn_table_read (const char *filename) |
void | bn_pr_table (const char *title, const struct bn_table *tabp) |
void | bn_pr_tabdata (const char *title, const struct bn_tabdata *data) |
int | bn_print_table_and_tabdata (const char *filename, const struct bn_tabdata *data) |
bn_tabdata * | bn_read_table_and_tabdata (const char *filename) |
bn_tabdata * | bn_tabdata_binary_read (const char *filename, int num, const struct bn_table *tabp) |
bn_tabdata * | bn_tabdata_malloc_array (const struct bn_table *tabp, int num) |
void | bn_tabdata_copy (struct bn_tabdata *out, const struct bn_tabdata *in) |
bn_tabdata * | bn_tabdata_dup (const struct bn_tabdata *in) |
bn_tabdata * | bn_tabdata_get_constval (double val, const struct bn_table *tabp) |
void | bn_tabdata_constval (struct bn_tabdata *data, double val) |
void | bn_tabdata_to_tcl (struct bu_vls *vp, const struct bn_tabdata *data) |
bn_tabdata * | bn_tabdata_from_array (const double *array) |
void | bn_tabdata_freq_shift (struct bn_tabdata *out, const struct bn_tabdata *in, double offset) |
int | bn_table_interval_num_samples (const struct bn_table *tabp, double low, double hi) |
int | bn_table_delete_sample_pts (struct bn_table *tabp, int i, int j) |
bn_table * | bn_table_merge2 (const struct bn_table *a, const struct bn_table *b) |
bn_tabdata * | bn_tabdata_mk_linear_filter (const struct bn_table *spectrum, double lower_wavelen, double upper_wavelen) |
Operates on bn_table (independent var) and bn_tabdata (dependent variable) structures.
One application is for storing spectral curves, see spectrum.c
Definition in file tabdata.c.
|
Definition at line 79 of file tabdata.c. References BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_free(), bu_log(), and bn_table::nx. Here is the call graph for this function: ![]() |
|
Definition at line 92 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_free(), bu_log(), data, and NULL. Here is the call graph for this function: ![]() |
|
Definition at line 108 of file tabdata.c. References BN_CK_TABLE, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_table::nx, and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 131 of file tabdata.c. References BN_GET_TABLE, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), fp, and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 162 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 193 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 224 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 259 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 293 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 323 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 352 of file tabdata.c. References BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_table::nx, and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 375 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 411 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 445 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 476 of file tabdata.c. References BN_CK_TABDATA, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 515 of file tabdata.c. References BN_CK_TABDATA, bu_debug, BU_DEBUG_TABDATA, bu_log(), FAST, bn_tabdata::ny, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 542 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_log(), FAST, bn_tabdata::ny, bn_tabdata::table, width, bn_table::x, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 573 of file tabdata.c. References BN_CK_TABDATA, bu_debug, BU_DEBUG_TABDATA, bu_log(), FAST, bn_tabdata::ny, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 601 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_log(), FAST, bn_tabdata::ny, bn_tabdata::table, width, bn_table::x, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 639 of file tabdata.c. References BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_table::nx, and bn_table::x. Referenced by bn_tabdata_mk_linear_filter(), bn_tabdata_resample_avg(), bn_tabdata_resample_max(), and bn_table_lin_interp(). Here is the call graph for this function: ![]() |
|
Definition at line 665 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, bn_table_find_x(), bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_table::nx, bn_tabdata::table, bn_table::x, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 715 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, BN_GET_TABDATA, bn_table_find_x(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_table::nx, bn_tabdata::table, bn_table::x, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 796 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, BN_GET_TABDATA, bn_table_find_x(), bn_table_lin_interp(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_table::nx, bn_tabdata::table, bn_table::x, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 879 of file tabdata.c. References BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_log(), BU_SEM_SYSCALL, bu_semaphore_acquire(), bu_semaphore_release(), fp, NULL, bn_table::nx, perror(), and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 916 of file tabdata.c. References BN_GET_TABLE, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), BU_SEM_SYSCALL, bu_semaphore_acquire(), bu_semaphore_release(), bu_vls_addr(), bu_vls_free(), bu_vls_gets(), bu_vls_init(), fp, NULL, bn_table::nx, perror(), and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 963 of file tabdata.c. References BN_CK_TABLE, bu_log(), bn_table::nx, and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 979 of file tabdata.c. References BN_CK_TABDATA, bu_log(), and data. Here is the call graph for this function: ![]() |
|
Definition at line 1003 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, bu_debug, BU_DEBUG_TABDATA, bu_log(), BU_SEM_SYSCALL, bu_semaphore_acquire(), bu_semaphore_release(), data, fp, NULL, bn_table::nx, perror(), and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 1047 of file tabdata.c. References bu_debug, BU_DEBUG_TABDATA, bu_log(), BU_SEM_SYSCALL, bu_semaphore_acquire(), bu_semaphore_release(), data, fp, NULL, and perror(). Here is the call graph for this function: ![]() |
|
Definition at line 1107 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, BN_SIZEOF_TABDATA, bu_debug, BU_DEBUG_TABDATA, bu_free(), bu_log(), bu_malloc(), BU_SEM_SYSCALL, bu_semaphore_acquire(), bu_semaphore_release(), data, NULL, and perror(). Here is the call graph for this function: ![]() |
|
Definition at line 1180 of file tabdata.c. References BN_CK_TABLE, BN_SIZEOF_TABDATA, BN_TABDATA_MAGIC, bu_calloc(), bu_debug, BU_DEBUG_TABDATA, bu_log(), data, and bn_table::nx. Here is the call graph for this function: ![]() |
|
Definition at line 1214 of file tabdata.c. References bcopy, BN_CK_TABDATA, BN_SIZEOF_TABDATA_Y, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_tabdata::ny, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 1233 of file tabdata.c. References bcopy, BN_CK_TABDATA, BN_GET_TABDATA, BN_SIZEOF_TABDATA_Y, bu_debug, BU_DEBUG_TABDATA, bu_log(), data, bn_tabdata::table, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 1253 of file tabdata.c. References BN_CK_TABLE, BN_GET_TABDATA, bu_debug, BU_DEBUG_TABDATA, bu_log(), and data. Here is the call graph for this function: ![]() |
|
Definition at line 1277 of file tabdata.c. References BN_CK_TABDATA, bu_debug, BU_DEBUG_TABDATA, bu_log(), and data. Here is the call graph for this function: ![]() |
|
Definition at line 1299 of file tabdata.c. References BN_CK_TABDATA, BN_CK_TABLE, BU_CK_VLS, bu_debug, BU_DEBUG_TABDATA, bu_log(), bu_vls_printf(), bu_vls_strcat(), data, FAST, MAX_FASTF, bn_table::nx, and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 1338 of file tabdata.c. References BN_GET_TABLE, data, and bn_table::x. |
|
Definition at line 1374 of file tabdata.c. References BN_CK_TABDATA, bn_table_lin_interp(), bu_bomb(), bu_debug, bu_log(), bn_tabdata::ny, bn_tabdata::table, bn_table::x, and bn_tabdata::y. Here is the call graph for this function: ![]() |
|
Definition at line 1401 of file tabdata.c. References BN_CK_TABLE, bn_table::nx, and bn_table::x. Referenced by rt_spect_make_CIE_XYZ(). |
|
Definition at line 1424 of file tabdata.c. References BN_CK_TABLE, bu_bomb(), bu_debug, bu_log(), bn_table::nx, and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 1455 of file tabdata.c. References BN_CK_TABLE, BN_GET_TABLE, bu_bomb(), bu_debug, BU_DEBUG_TABDATA, bu_log(), bn_table::nx, and bn_table::x. Here is the call graph for this function: ![]() |
|
Definition at line 1510 of file tabdata.c. References BN_CK_TABLE, BN_GET_TABDATA, bn_table_find_x(), BU_ASSERT, bu_debug, BU_DEBUG_TABDATA, bu_log(), NULL, bn_table::nx, bn_table::x, and bn_tabdata::y. Here is the call graph for this function: ![]() |