Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
javawlp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
impresshs
javawlp
Commits
db01f37d
Commit
db01f37d
authored
8 years ago
by
Koen Wermer
Browse files
Options
Downloads
Patches
Plain Diff
tested gradientfunction with daikon
parent
edb7307f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Daikon.hs
+2
-1
2 additions, 1 deletion
Daikon.hs
Results/Daikon results.txt
+7
-1
7 additions, 1 deletion
Results/Daikon results.txt
Tests/GradientFunction.java
+2
-2
2 additions, 2 deletions
Tests/GradientFunction.java
with
11 additions
and
4 deletions
Daikon.hs
+
2
−
1
View file @
db01f37d
-- Contains all code used for running the daikon experiments
module
Daikon
where
import
Control.Monad
...
...
@@ -6,7 +7,7 @@ import System.Directory
import
Data.List
testNr
::
Int
testNr
=
1
testNr
=
2
source
,
pathDir
,
packageDir
,
methodName
::
String
source
=
case
testNr
of
...
...
This diff is collapsed.
Click to expand it.
Results/Daikon results.txt
+
7
−
1
View file @
db01f37d
...
...
@@ -2,4 +2,10 @@ iterator:
5 mutations with error found: 2, 3, 4, 5, 32
4 mutations with error found not detected by wlp: 2, 3, 4, 5
2 mutations with unterminated calls: 1 and 31
1 mutation stuck in a loop: 35
\ No newline at end of file
1 mutation stuck in a loop: 35
GradientFunction:
5 mutations with error found: 2, 9, 13, 14, 22
4 mutations with error found not detected by wlp: 9, 13, 14, 22
0 mutations with unterminated calls
0 mutations stuck in a loop
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Tests/GradientFunction.java
+
2
−
2
View file @
db01f37d
...
...
@@ -47,14 +47,14 @@ public class GradientFunction implements MultivariateVectorFunction {
}
// compute the derivatives
final
DerivativeStructure
dsY
=
this
.
f
.
value
(
dsX
);
final
DerivativeStructure
dsY
=
null
;
//
this.f.value(dsX);
// extract the gradient
final
double
[]
y
=
new
double
[
point
.
length
];
final
int
[]
orders
=
new
int
[
point
.
length
];
for
(
int
j
=
0
;
j
<
point
.
length
;
++
j
)
{
orders
[
j
]
=
1
;
y
[
j
]
=
dsY
.
getPartialDerivative
(
orders
);
y
[
j
]
=
1
;
//
dsY.getPartialDerivative(orders);
orders
[
j
]
=
0
;
}
...
...
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