Commit 30af433e authored by panos's avatar panos

Bug fixed in the objects of the tool

parent 12dd0bb1
...@@ -25,7 +25,7 @@ Created on 16 Nov 2013 ...@@ -25,7 +25,7 @@ Created on 16 Nov 2013
from rpy2 import robjects from rpy2 import robjects
#The ConfidenceIntervals object #The ConfidenceIntervals object
class Intervals: class Intervals(object):
#Calculate the p (decimal number) confidence intervals for a sample of data #Calculate the p (decimal number) confidence intervals for a sample of data
def ConfidIntervals(self,data,p): def ConfidIntervals(self,data,p):
......
...@@ -26,7 +26,7 @@ Created on 16 Apr 2014 ...@@ -26,7 +26,7 @@ Created on 16 Apr 2014
import rpy2.robjects as robjects import rpy2.robjects as robjects
#The DataManipulation object #The DataManipulation object
class DataManagement: class DataManagement(object):
def round(self, data): #returns the rounded values of the data sample def round(self, data): #returns the rounded values of the data sample
data=robjects.FloatVector(data) ##The given list changes into float vector in order to be handled by RPy2 data=robjects.FloatVector(data) ##The given list changes into float vector in order to be handled by RPy2
......
...@@ -35,7 +35,7 @@ MASS= importr('MASS') ...@@ -35,7 +35,7 @@ MASS= importr('MASS')
#DistFittest object: for Kolmogorov-Smirnov distribution fitting test in order to find the best distribution fitting for the given data points #DistFittest object: for Kolmogorov-Smirnov distribution fitting test in order to find the best distribution fitting for the given data points
#The Distributions object #The Distributions object
class Distributions: class Distributions(object):
def Normal_distrfit(self,data): def Normal_distrfit(self,data):
data=robjects.FloatVector(data) #The given data sample changes into float vector in order to be handled by RPy2 data=robjects.FloatVector(data) #The given data sample changes into float vector in order to be handled by RPy2
...@@ -139,7 +139,7 @@ class Distributions: ...@@ -139,7 +139,7 @@ class Distributions:
return myDict return myDict
#The Distribution Fitting test object #The Distribution Fitting test object
class DistFittest: class DistFittest(object):
def Norm_kstest(self,data): def Norm_kstest(self,data):
data=robjects.FloatVector(data) #The given data sample changes into float vector in order to be handled by RPy2 data=robjects.FloatVector(data) #The given data sample changes into float vector in order to be handled by RPy2
......
...@@ -23,7 +23,7 @@ Created on 13 Jun 2014 ...@@ -23,7 +23,7 @@ Created on 13 Jun 2014
# =========================================================================== # ===========================================================================
import csv import csv
#The Import_CSV object #The Import_CSV object
class Import_CSV: class Import_CSV(object):
#This object reads data from a CSV document #This object reads data from a CSV document
def Input_data(self,fileName): #This method takes as an argument the Name of the CSV file def Input_data(self,fileName): #This method takes as an argument the Name of the CSV file
#Opens the CSV for the reader to use #Opens the CSV for the reader to use
......
...@@ -23,7 +23,7 @@ Created on 19 Feb 2014 ...@@ -23,7 +23,7 @@ Created on 19 Feb 2014
@author: Panos @author: Panos
''' '''
#The Import_Excel object #The Import_Excel object
class Import_Excel: class Import_Excel(object):
#This object reads data from different worksheets of an Excel document #This object reads data from different worksheets of an Excel document
def Input_data(self,worksheetName,inputbook): #This method takes as an argument the Name of the preferred worksheet def Input_data(self,worksheetName,inputbook): #This method takes as an argument the Name of the preferred worksheet
......
...@@ -25,7 +25,7 @@ Created on 16 Dec 2013 ...@@ -25,7 +25,7 @@ Created on 16 Dec 2013
from rpy2 import robjects from rpy2 import robjects
#The Graphs object #The Graphs object
class Graphs: class Graphs(object):
#Graphs that can visualize the data samples #Graphs that can visualize the data samples
def Plots(self,data, fileName="plotChart.jpg"): def Plots(self,data, fileName="plotChart.jpg"):
......
...@@ -27,7 +27,7 @@ Created on 27 Nov 2014 ...@@ -27,7 +27,7 @@ Created on 27 Nov 2014
# By using this script the KE tool integrates with Simul8 accessing the XML of one model and modifying several info based on the available data # By using this script the KE tool integrates with Simul8 accessing the XML of one model and modifying several info based on the available data
from xml.etree import ElementTree as et from xml.etree import ElementTree as et
# The Distributions object # The Distributions object
class Simul8Output: class Simul8Output(object):
def Simul8Dist(self,dist): #Using this method the statistical distributions from the DistributionFitting objects translated to meaningful info for the Simul8 package def Simul8Dist(self,dist): #Using this method the statistical distributions from the DistributionFitting objects translated to meaningful info for the Simul8 package
self.sim8Dist=[] self.sim8Dist=[]
......
...@@ -28,7 +28,7 @@ from rpy2.robjects.packages import importr ...@@ -28,7 +28,7 @@ from rpy2.robjects.packages import importr
MASS= importr('MASS') MASS= importr('MASS')
#The BasicStatisticalMeasures object #The BasicStatisticalMeasures object
class BasicStatisticalMeasures: class BasicStatisticalMeasures(object):
# A variety of statistical measures are calculated in this object # A variety of statistical measures are calculated in this object
def length(self, data): #Calculate the length of data sample def length(self, data): #Calculate the length of data sample
data=robjects.FloatVector(data) ##The given list changes into float vector in order to be handled by RPy2 data=robjects.FloatVector(data) ##The given list changes into float vector in order to be handled by RPy2
......
...@@ -26,7 +26,7 @@ Created on 14 Nov 2013 ...@@ -26,7 +26,7 @@ Created on 14 Nov 2013
import rpy2.robjects as robjects import rpy2.robjects as robjects
#The BasicTransformations object #The BasicTransformations object
class BasicTransformations: class BasicTransformations(object):
# A variety of transformations are calculated in this object # A variety of transformations are calculated in this object
def sum(self, data): #calculates the sum of data sample def sum(self, data): #calculates the sum of data sample
data=robjects.FloatVector(data) ##The given list changes into float vector in order to be handled by RPy2 data=robjects.FloatVector(data) ##The given list changes into float vector in order to be handled by RPy2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment