Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-wowa-training
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
java-wowa-training
Commits
143ad1f3
Commit
143ad1f3
authored
6 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Change getters and setters in SolutionDistance to public
parent
8e44e4a7
No related branches found
No related tags found
No related merge requests found
Pipeline
#1238
passed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/be/cylab/java/wowa/training/SolutionDistance.java
+10
-5
10 additions, 5 deletions
...in/java/be/cylab/java/wowa/training/SolutionDistance.java
with
10 additions
and
5 deletions
src/main/java/be/cylab/java/wowa/training/SolutionDistance.java
+
10
−
5
View file @
143ad1f3
package
be.cylab.java.wowa.training
;
import
info.debatty.java.aggregation.WOWA
;
import
org.jetbrains.annotations.TestOnly
;
import
java.util.Arrays
;
import
java.util.List
;
...
...
@@ -39,7 +38,7 @@ public class SolutionDistance
* @param weights_number int
* @param seed int
*/
@TestOnly
public
SolutionDistance
(
final
int
weights_number
,
final
int
seed
)
{
Random
rnd
=
new
Random
(
seed
);
this
.
weights_w
=
new
double
[
weights_number
];
...
...
@@ -152,15 +151,21 @@ public class SolutionDistance
/**
* @return
*/
final
double
getDistance
()
{
public
final
double
getDistance
()
{
return
distance
;
}
final
double
[]
getWeightsW
()
{
/**
* @return
*/
public
final
double
[]
getWeightsW
()
{
return
this
.
weights_w
;
}
final
double
[]
getWeightsP
()
{
/**
* @return
*/
public
final
double
[]
getWeightsP
()
{
return
this
.
weights_p
;
}
...
...
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