This file is indexed.

/usr/include/tjutils/tjnumeric.h is in libodin-dev 1.8.8-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/***************************************************************************
                          tjnumeric.h  -  description
                             -------------------
    begin                : Mon May 5 2003
    copyright            : (C) 2000-2014 by Thies H. Jochimsen
    email                : thies@jochimsen.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef TJNUMERIC_H
#define TJNUMERIC_H

#include <tjutils/tjutils.h>
#include <tjutils/tjvector.h>

/**
  * @addtogroup tjutils
  * @{
  */

/**
  *
  * Solve cubic equation    x^3 + a x^2 + b x + c = 0 , copied from the GSL-lib
  */
int solve_cubic (double a, double b, double c,
                      double *x0, double *x1, double *x2);

////////////////////////////////////////////////////////////////////////////////////////


/**
  * Calculate random number distributions, the generator is seeded once upon construction
  * using the system time.
  */
class RandomDist {

 public:
  RandomDist();
  ~RandomDist();

/**
  * Calculate Gaussian distribution with given standard deviation, uses GSL random number generator
  */
  double gaussian(double stdev) const;

/**
  * Calculate uniformly distributed random number in range [0,1), uses GSL random number generator
  */
  double uniform() const;

 private:
  void* rng;
};

////////////////////////////////////////////////////////////////////////////////////////

/**
  * Function which is used for optimization
  */
class MinimizationFunction {

 public:

/**
  * Returns the number of independent fitting parameters
  */
  virtual unsigned int numof_fitpars() const = 0;

/**
  * Multi-dimensional function to be minimized
  */
  virtual float evaluate(const fvector&) const = 0;
};


////////////////////////////////////////////////////////////////////////////////////////


/**
  * one-dimensional brute-force minimizer in given interval [low,upp].
  * Returns coordinates of minimum.
  */
fvector bruteforce_minimize1d(const MinimizationFunction& f, float low, float upp);


/** @}
  */
#endif