/* Title: compare.h
 * Author: Jed Marti KI7NNP
 * Description: Prototypes, structures for comparison of all equations against a data file
 * Revision History:
 */

#ifndef compare_h
#define compare_h

#define VERSION 2
#define RELEASE 0
#define PATCH   1

// Wire sizes.
typedef struct {
  double dia;
  uint8_t gauge;
} wsize_t;



// Measured inductances and their mean or median values. See ../perm/*.csv for details.
typedef struct {
  void    *next;                 // For lists.
  double  L;                     // Measured inductance in Henries.
  double  R;                     // Radius in meters.
  double  Ri;                    // Radius in inches.
  double  W;                     // Wire Radius in meters.
  int32_t G;                     // Wire gauge.
  double  LEN;                   // Length in meters.
  double  LENi;                  // Length in inches.
  int32_t N;                     // Number of turns.
  char    *FN;                   // File name.
  double  goodness;              // For sorting at end.
  double  computed;              // The computed inductance.
} anInductor;

// See readind.c
void readTestInductors(char *fname);

#endif


// EOF
