| 1 |
#ifndef _PairDistribution_h_ |
| 2 |
#define _PairDistribution_h_ |
| 3 |
/* PairDistribution.h |
| 4 |
* |
| 5 |
* Copyright (C) 1997-2011,2015,2017,2018,2025 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 3 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 |
|
| 21 |
#include "Strings_.h" |
| 22 |
#include "Table.h" |
| 23 |
#include "Distributions.h" |
| 24 |
|
| 25 |
#include "PairDistribution_def.h" |
| 26 |
|
| 27 |
autoPairProbability PairProbability_create (conststring32 string1, conststring32 string2, double weight); |
| 28 |
|
| 29 |
int PairProbability_compare (PairProbability me, PairProbability thee) noexcept; |
| 30 |
|
| 31 |
autoPairDistribution PairDistribution_create (); |
| 32 |
|
| 33 |
conststring32 PairDistribution_getString1 (PairDistribution me, integer pairNumber); |
| 34 |
conststring32 PairDistribution_getString2 (PairDistribution me, integer pairNumber); |
| 35 |
double PairDistribution_getWeight (PairDistribution me, integer pairNumber); |
| 36 |
void PairDistribution_setWeight (PairDistribution me, integer pairNumber, double newWeight); |
| 37 |
|
| 38 |
void PairDistribution_add (PairDistribution me, conststring32 string1, conststring32 string2, double weight); |
| 39 |
void PairDistribution_removeZeroWeights (PairDistribution me); |
| 40 |
void PairDistribution_to_Stringses (PairDistribution me, integer nout, autoStrings *strings1, autoStrings *strings2); |
| 41 |
void PairDistribution_peekPair (PairDistribution me, conststring32 *out_string1, conststring32 *out_string2); |
| 42 |
|
| 43 |
void PairDistribution_swapInputsAndOutputs (PairDistribution me); |
| 44 |
|
| 45 |
double PairDistribution_getFractionCorrect_maximumLikelihood (PairDistribution me); |
| 46 |
double PairDistribution_getFractionCorrect_probabilityMatching (PairDistribution me); |
| 47 |
double PairDistribution_Distributions_getFractionCorrect (PairDistribution me, Distributions thee, integer column); |
| 48 |
|
| 49 |
autoTable PairDistribution_to_Table (PairDistribution me); |
| 50 |
|
| 51 |
/* End of file PairDistribution.h */ |
| 52 |
#endif |