Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexis Nasr
macaon2
Commits
dafaf144
Commit
dafaf144
authored
8 years ago
by
Marjorie Armando
Browse files
Options
Downloads
Patches
Plain Diff
generate train and test files, generate cff, predict test's forms' classes
parent
add5a663
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
maca_morpho/src/maca_morpho_feat_fct.c
+87
-0
87 additions, 0 deletions
maca_morpho/src/maca_morpho_feat_fct.c
with
87 additions
and
0 deletions
maca_morpho/src/maca_morpho_feat_fct.c
0 → 100644
+
87
−
0
View file @
dafaf144
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
"feat_lib.h"
/*patterns feature*/
int
p1
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
1
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
1
];
}
int
p2
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
2
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
2
];
}
int
p3
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
3
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
3
];
}
int
p4
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
4
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
4
];
}
int
p5
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
5
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
5
];
}
int
p6
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
6
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
6
];
}
int
p7
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
7
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
7
];
}
int
p8
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
8
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
8
];
}
int
p9
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
9
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
9
];
}
int
p10
(
void
*
input
)
{
if
(
input
==
NULL
||
(
int
)
strlen
((
char
*
)
input
)
-
10
<
0
)
return
-
1
;
return
((
char
*
)
input
)[(
int
)
strlen
((
char
*
)
input
)
-
10
];
}
feat_lib
*
feat_lib_build
(
void
)
{
feat_lib
*
fl
=
feat_lib_new
();
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p1"
,
p1
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p2"
,
p2
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p3"
,
p3
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p4"
,
p4
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p5"
,
p5
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p6"
,
p6
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p7"
,
p7
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p8"
,
p8
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p9"
,
p9
);
feat_lib_add
(
fl
,
1
,
(
char
*
)
"p10"
,
p10
);
return
fl
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment