// Path: src/main/java/com/jfcorugedo/rserver/exception/BadRequestException.java
// @ResponseStatus(value=HttpStatus.BAD_REQUEST)
// public class BadRequestException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public BadRequestException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: src/main/java/com/jfcorugedo/rserver/generalization/algorithm/KolmogorovSmirnovTest.java
// public interface KolmogorovSmirnovTest {
// 
// 	double CRITICAL_VALUE_0_05 = 1.36;
// 	double CRITICAL_VALUE_0_01 = 1.63;
// 
// 	/**
// 	 * This test try to test if the null hypothesis is truth or not.
// 	 * 
// 	 * The null hypothesis is that the samples are drawn from the same distribution.
// 	 * 
// 	 */
// 	boolean areGeneralizable(double[] x, double[] y);
// 
// 	/**
// 	 * It returns a string representation of the algorithm used to compare the given samples.
// 	 * 
// 	 * @return
// 	 */
// 	String getAlgorithm();
// }


import static org.springframework.web.bind.annotation.RequestMethod.POST;
import java.util.List;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.codahale.metrics.annotation.Timed;
import com.jfcorugedo.rserver.exception.BadRequestException;
import com.jfcorugedo.rserver.generalization.algorithm.KolmogorovSmirnovTest;
package com.jfcorugedo.rserver.service;







@RestController
public class RController {

	public static final Logger LOGGER = LoggerFactory.getLogger(RController.class);
			
	@Inject
	private RService rService;
	
	@Inject
// Path: src/main/java/com/jfcorugedo/rserver/exception/BadRequestException.java
// @ResponseStatus(value=HttpStatus.BAD_REQUEST)
// public class BadRequestException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public BadRequestException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: src/main/java/com/jfcorugedo/rserver/generalization/algorithm/KolmogorovSmirnovTest.java
// public interface KolmogorovSmirnovTest {
// 
// 	double CRITICAL_VALUE_0_05 = 1.36;
// 	double CRITICAL_VALUE_0_01 = 1.63;
// 
// 	/**
// 	 * This test try to test if the null hypothesis is truth or not.
// 	 * 
// 	 * The null hypothesis is that the samples are drawn from the same distribution.
// 	 * 
// 	 */
// 	boolean areGeneralizable(double[] x, double[] y);
// 
// 	/**
// 	 * It returns a string representation of the algorithm used to compare the given samples.
// 	 * 
// 	 * @return
// 	 */
// 	String getAlgorithm();
// }


// Path: src/main/java/com/jfcorugedo/rserver/service/RController.java
import static org.springframework.web.bind.annotation.RequestMethod.POST;
import java.util.List;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.codahale.metrics.annotation.Timed;
import com.jfcorugedo.rserver.exception.BadRequestException;
import com.jfcorugedo.rserver.generalization.algorithm.KolmogorovSmirnovTest;

package com.jfcorugedo.rserver.service;







@RestController
public class RController {

	public static final Logger LOGGER = LoggerFactory.getLogger(RController.class);
			
	@Inject
	private RService rService;
	
	@Inject
	private KolmogorovSmirnovTest ksTest;