Go to the documentation of this file. 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) {
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 copy_d(const double *from, int n, double *to)
void sm_debug(const char *msg,...)
int ld_valid_fields(LDP ld)
double *restrict readings
int *restrict alpha_valid
void options_double(struct option *, const char *name, double *p, double def_value, const char *desc)
void sm_set_program_name(const char *name)
struct option * options_allocate(int n)
int main(int argc, const char **argv)
void options_print_help(struct option *options, FILE *f)
void sm_error(const char *msg,...)
LDP ld_alloc_new(int nrays)
LDP ld_read_smart(FILE *)
int options_parse_args(struct option *ops, int argc, const char *argv[])
void ld_write_as_json(LDP ld, FILE *stream)
csm
Author(s): Andrea Censi
autogenerated on Wed Aug 17 2022 02:50:33