Skip to content

Commit

Permalink
Adding version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
esaliya committed Jan 9, 2016
1 parent 0beb58b commit 4df0bb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/edu/indiana/soic/spidal/damds/Program.java
Original file line number Diff line number Diff line change
Expand Up @@ -1430,8 +1430,8 @@ private static void readDistancesAndWeights(boolean isSammon) {
true, function, config.repetitions, distances);
}

short[] w = null;
if (!Strings.isNullOrEmpty(config.weightMatrixFile)){
short[] w = null;
function = !Strings.isNullOrEmpty(config.weightTransformationFunction)
? loadFunction(config.weightTransformationFunction)
: null;
Expand All @@ -1454,6 +1454,9 @@ private static void readDistancesAndWeights(boolean isSammon) {
sw = BinaryReader2D.readSimpleFile(config.weightMatrixFile, config.numberDataPoints);
weights = new WeightsWrap1D(sw, ParallelOps.procRowRange, distances, isSammon, ParallelOps.globalColCount, function);
}
} else {
weights = new WeightsWrap1D(
null, distances, isSammon, ParallelOps.globalColCount);
}

}
Expand Down

0 comments on commit 4df0bb0

Please sign in to comment.