Question
Please help to fix JAVA code. I can not print and calculate trimmed Mean. The data use Iris.csv (can download from web) package javaapplication56; import
Please help to fix JAVA code. I can not print and calculate trimmed Mean. The data use Iris.csv (can download from web)
package javaapplication56;
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; class StatisticalMethods{ private double [][]x; private final int row,col; private String []flowerType; public StatisticalMethods(String path){ row=150; col=4; x=new double[row][col]; flowerType=new String[row]; String line; try{ BufferedReader br=new BufferedReader(new FileReader(path)); line=br.readLine(); int j=0; while((line=br.readLine())!=null){ String []instance=line.split(","); for(int i=0;i
public class MainClass12{ public static void print(double []x){ System.out.println("SepalLengthCm, SepalWidthCm, PetalLengthCm, PetalWidthCm"); for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started