Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Added a dummy for the t-test function. Will be updated when I have access to my

office computer tomorrow.
This commit is contained in:
Einar Ryeng 2007-06-28 21:48:13 +00:00
parent b637a5badc
commit 884804c49a
1 changed files with 24 additions and 4 deletions

View File

@ -333,14 +333,34 @@ class GOWeightFunction(workflow.Function):
return options
class Options(dict):
class TTestOptionsDialog(workflow.OptionsDialog):
def __init__(self, data, options):
workflow.OptionsDialog.__init__(self, data, options,
['X', 'Categories'])
class TTestFunction(workflow.Function):
def __init__(self):
dict.__init__(self)
workflow.Function.__init__(self, 't-test', 't-test')
self.options = TTestOptions()
def run(self, x, categories):
self.show_gui(x, categories)
def show_gui(self, x, categories):
dlg = TTestOptionsDialog([x, categories], self.options)
dlg.run()
class GOWeightOptions(Options):
class TTestOptions(workflow.Options):
def __init__(self):
Options.__init__(self)
workflow.Options.__init__(self)
class GOWeightOptions(workflow.Options):
def __init__(self):
workflow.Options.__init__(self)
self['similarity_threshold'] = 0.0
self['rank_threshold'] = 0.0