Javadoc: Use "file name" instead of "filename".
Camel case vars "filename" to "fileName".
This commit is contained in:
parent
71aed1094c
commit
77e603a0fb
|
@ -196,17 +196,17 @@ public class KohonenTrainingTaskTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints a summary of the current state of the solver to the
|
* Prints a summary of the current state of the solver to the
|
||||||
* given filename.
|
* given file name.
|
||||||
*
|
*
|
||||||
* @param filename File.
|
* @param fileName File.
|
||||||
* @param solver Solver.
|
* @param solver Solver.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private void printSummary(String filename,
|
private void printSummary(String fileName,
|
||||||
TravellingSalesmanSolver solver) {
|
TravellingSalesmanSolver solver) {
|
||||||
PrintWriter out = null;
|
PrintWriter out = null;
|
||||||
try {
|
try {
|
||||||
out = new PrintWriter(filename);
|
out = new PrintWriter(fileName);
|
||||||
out.println(travelCoordinatesTable(solver));
|
out.println(travelCoordinatesTable(solver));
|
||||||
|
|
||||||
final City[] result = solver.getCityList();
|
final City[] result = solver.getCityList();
|
||||||
|
|
|
@ -278,16 +278,16 @@ public class ChineseRingsClassifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints the U-matrix of the map to the given filename.
|
* Prints the U-matrix of the map to the given file name.
|
||||||
*
|
*
|
||||||
* @param filename File.
|
* @param fileName File.
|
||||||
* @param sofm Classifier.
|
* @param sofm Classifier.
|
||||||
*/
|
*/
|
||||||
private static void printU(String filename,
|
private static void printU(String fileName,
|
||||||
ChineseRingsClassifier sofm) {
|
ChineseRingsClassifier sofm) {
|
||||||
PrintWriter out = null;
|
PrintWriter out = null;
|
||||||
try {
|
try {
|
||||||
out = new PrintWriter(filename);
|
out = new PrintWriter(fileName);
|
||||||
|
|
||||||
final double[][] uMatrix = sofm.computeU();
|
final double[][] uMatrix = sofm.computeU();
|
||||||
for (int i = 0; i < uMatrix.length; i++) {
|
for (int i = 0; i < uMatrix.length; i++) {
|
||||||
|
@ -308,16 +308,16 @@ public class ChineseRingsClassifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints the hit histogram of the map to the given filename.
|
* Prints the hit histogram of the map to the given file name.
|
||||||
*
|
*
|
||||||
* @param filename File.
|
* @param fileName File.
|
||||||
* @param sofm Classifier.
|
* @param sofm Classifier.
|
||||||
*/
|
*/
|
||||||
private static void printHit(String filename,
|
private static void printHit(String fileName,
|
||||||
ChineseRingsClassifier sofm) {
|
ChineseRingsClassifier sofm) {
|
||||||
PrintWriter out = null;
|
PrintWriter out = null;
|
||||||
try {
|
try {
|
||||||
out = new PrintWriter(filename);
|
out = new PrintWriter(fileName);
|
||||||
|
|
||||||
final int[][] histo = sofm.computeHitHistogram();
|
final int[][] histo = sofm.computeHitHistogram();
|
||||||
for (int i = 0; i < histo.length; i++) {
|
for (int i = 0; i < histo.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue