| 1 |
#ifndef _ActivationList_h_ |
| 2 |
#define _ActivationList_h_ |
| 3 |
/* ActivationList.h |
| 4 |
* |
| 5 |
* Copyright (C) 1993-2011,2015,2016 David Weenink, Paul Boersma 2017,2026 |
| 6 |
* |
| 7 |
* This program is free oftware; 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. See the GNU |
| 15 |
* 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 "Matrix.h" |
| 22 |
|
| 23 |
Thing_define (ActivationList, Matrix) { |
| 24 |
}; |
| 25 |
|
| 26 |
/* Attributes: |
| 27 |
xmin : 1 |
| 28 |
xmax : number of units |
| 29 |
nx : number of units |
| 30 |
dx : 1 |
| 31 |
x1 : 1 |
| 32 |
ymin : 1 |
| 33 |
ymax : number of patterns |
| 34 |
ny : number of patterns |
| 35 |
dy : 1 |
| 36 |
y1 : 1 |
| 37 |
z [iy] [ix] : the activities |
| 38 |
*/ |
| 39 |
|
| 40 |
void ActivationList_init (ActivationList me, integer ny, integer nx); |
| 41 |
|
| 42 |
autoActivationList ActivationList_create (integer ny, integer nx); |
| 43 |
|
| 44 |
autoActivationList Matrix_to_ActivationList (Matrix me); |
| 45 |
|
| 46 |
autoMatrix ActivationList_to_Matrix (ActivationList me); |
| 47 |
|
| 48 |
int _ActivationList_checkElements (ActivationList me); |
| 49 |
/* Return 1 if all elements are in interval [0, 1], else 0. */ |
| 50 |
|
| 51 |
/* End of file ActivationList.h */ |
| 52 |
#endif |