1 #include <gsl/gsl_rng.h> 2 #include <gsl/gsl_randist.h> 3 #include <gsl/gsl_math.h> 9 #include "../csm/csm_all.h" 20 int main(
int argc,
const char ** argv) {
25 options_double(ops,
"interval", &
p.interval, sqrt(2.0),
" 1 = no resampling");
38 sm_error(
"Invalid laser data (#%d in file)\n", count);
60 int n = (int) (floor(ld->
nrays /
p.interval));
65 double index = k *
p.interval;
66 int i = (int) floor(index);
68 double a = 1 - (index - i);
82 sm_debug(
"Hey, k=%d theta[%d]=%f theta[%d]=%f\n",
void sm_set_program_name(const char *name)
void ld_write_as_json(LDP ld, FILE *stream)
void copy_d(const double *from, int n, double *to)
void options_double(struct option *, const char *name, double *p, double def_value, const char *desc)
int ld_valid_fields(LDP ld)
LDP ld_read_smart(FILE *)
double *restrict readings
struct option * options_allocate(int n)
int *restrict alpha_valid
int main(int argc, const char **argv)
void options_print_help(struct option *options, FILE *f)
void sm_debug(const char *msg,...)
LDP ld_alloc_new(int nrays)
void sm_error(const char *msg,...)
int options_parse_args(struct option *ops, int argc, const char *argv[])