~ubuntu-branches/ubuntu/saucy/ladr/saucy

« back to all changes in this revision

Viewing changes to ladr/weight.h.bak

  • Committer: Package Import Robot
  • Author(s): Frank Lichtenheld
  • Date: 2013-05-25 11:43:32 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20130525114332-lkzco1dti2hwrf7v
Tags: 0.0.200911a-2
* QA upload.
* Upload to unstable.
* Change maintainer to QA group.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  Copyright (C) 2006, 2007 William McCune
2
 
 
3
 
    This file is part of the LADR Deduction Library.
4
 
 
5
 
    The LADR Deduction Library is free software; you can redistribute it
6
 
    and/or modify it under the terms of the GNU General Public License,
7
 
    version 2.
8
 
 
9
 
    The LADR Deduction Library is distributed in the hope that it will be
10
 
    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
    GNU General Public License for more details.
13
 
 
14
 
    You should have received a copy of the GNU General Public License
15
 
    along with the LADR Deduction Library; if not, write to the Free Software
16
 
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
 
*/
18
 
 
19
 
#ifndef TP_WEIGHT_H
20
 
#define TP_WEIGHT_H
21
 
 
22
 
#include "literals.h"
23
 
#include "unify.h"
24
 
 
25
 
/* INTRODUCTION
26
 
*/
27
 
 
28
 
/* Public definitions */
29
 
 
30
 
/* End of public definitions */
31
 
 
32
 
/* Public function prototypes from weight.c */
33
 
 
34
 
void init_weight(Plist rules,
35
 
                 double variable_weight,
36
 
                 double constant_weight,
37
 
                 double not_weight,
38
 
                 double or_weight,
39
 
                 double sk_constant_weight,
40
 
                 double prop_atom_weight,
41
 
                 double nest_penalty,
42
 
                 double depth_penalty,
43
 
                 double var_penalty,
44
 
                 double complexity);
45
 
 
46
 
double weight(Term t, Context subst);
47
 
 
48
 
double clause_weight(Literals lits);
49
 
 
50
 
#endif  /* conditional compilation of whole file */