Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dzu authored and dzu committed Dec 11, 2021
1 parent c0285b6 commit bde6d4a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 1 addition & 5 deletions CorveToFurrier2/.classpath
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
3 changes: 3 additions & 0 deletions CorveToFurrier2/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
7 changes: 6 additions & 1 deletion CorveToFurrier2/src/dzuchun/app/ctf/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,12 @@ public void calculateResult() {
fillFreq();
synchronized (LOCK) {
circles = FurrierTransforms.setDescrete(freq, curve);
List<Integer> order = new ArrayList<>(List.of(Util.intArray(freq.length)));
//Filling order
Integer[] tmp = Util.intArray(freq.length);
Vector<Integer> order = new Vector<Integer>(0);
for (int i : tmp) {
order.add(i);
}
order.sort((i1, i2) -> (int) (10000 * (circles[i2].getAbsolute() - circles[i1].getAbsolute())));
Integer[] shaft = new Integer[freq.length];
order.toArray(shaft);
Expand Down

0 comments on commit bde6d4a

Please sign in to comment.