PairDistribution.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _PairDistribution_h_
  2. #define _PairDistribution_h_
  3. /* PairDistribution.h
  4. *
  5. * Copyright (C) 1997-2011,2015,2017 Paul Boersma
  6. *
  7. * This code is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * This code is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include "Strings_.h"
  21. #include "Table.h"
  22. #include "Distributions.h"
  23. #include "PairDistribution_def.h"
  24. autoPairProbability PairProbability_create (conststring32 string1, conststring32 string2, double weight);
  25. int PairProbability_compare (PairProbability me, PairProbability thee) noexcept;
  26. autoPairDistribution PairDistribution_create ();
  27. conststring32 PairDistribution_getString1 (PairDistribution me, integer pairNumber);
  28. conststring32 PairDistribution_getString2 (PairDistribution me, integer pairNumber);
  29. double PairDistribution_getWeight (PairDistribution me, integer pairNumber);
  30. void PairDistribution_add (PairDistribution me, conststring32 string1, conststring32 string2, double weight);
  31. void PairDistribution_removeZeroWeights (PairDistribution me);
  32. void PairDistribution_to_Stringses (PairDistribution me, integer nout, autoStrings *strings1, autoStrings *strings2);
  33. void PairDistribution_peekPair (PairDistribution me, conststring32 *out_string1, conststring32 *out_string2);
  34. void PairDistribution_swapInputsAndOutputs (PairDistribution me);
  35. double PairDistribution_getFractionCorrect_maximumLikelihood (PairDistribution me);
  36. double PairDistribution_getFractionCorrect_probabilityMatching (PairDistribution me);
  37. double PairDistribution_Distributions_getFractionCorrect (PairDistribution me, Distributions thee, integer column);
  38. autoTable PairDistribution_to_Table (PairDistribution me);
  39. /* End of file PairDistribution.h */
  40. #endif