本文整理汇总了C#中Ferda类的典型用法代码示例。如果您正苦于以下问题:C# Ferda类的具体用法?C# Ferda怎么用?C# Ferda使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Ferda类属于命名空间,在下文中一共展示了Ferda类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: getStatistics
public override float getStatistics(Ferda.Modules.AbstractQuantifierSetting quantifierSetting, Ice.Current current__)
{
//a(a+b+c+d)/((a+b)(a+c))- 1
return
(float)(
quantifierSetting.secondContingencyTableRows[0][0] *
(
quantifierSetting.secondContingencyTableRows[0][0] +
quantifierSetting.secondContingencyTableRows[0][1] +
quantifierSetting.secondContingencyTableRows[1][0] +
quantifierSetting.secondContingencyTableRows[1][1]
)
)
/
(float)((
(
quantifierSetting.secondContingencyTableRows[0][0] +
quantifierSetting.secondContingencyTableRows[0][1]
)
*
(
quantifierSetting.secondContingencyTableRows[0][0] +
quantifierSetting.secondContingencyTableRows[1][0]
)
) - 1);
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:26,代码来源:TwoAvgDf.cs
示例2: getStatistics
public override float getStatistics(Ferda.Modules.AbstractQuantifierSetting quantifierSetting, Ice.Current current__)
{
//Differences between EConfidence (a+d)/(a+b+c+d)
return
((float)(
quantifierSetting.firstContingencyTableRows[0][0] +
quantifierSetting.firstContingencyTableRows[1][1]
)
/
(float)(
quantifierSetting.firstContingencyTableRows[0][0] +
quantifierSetting.firstContingencyTableRows[0][1] +
quantifierSetting.firstContingencyTableRows[1][0] +
quantifierSetting.firstContingencyTableRows[1][1]
))
-
((float)(
quantifierSetting.secondContingencyTableRows[0][0] +
quantifierSetting.secondContingencyTableRows[1][1]
)
/
(float)(
quantifierSetting.secondContingencyTableRows[0][0] +
quantifierSetting.secondContingencyTableRows[0][1] +
quantifierSetting.secondContingencyTableRows[1][0] +
quantifierSetting.secondContingencyTableRows[1][1]
))
;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:29,代码来源:DfFUE.cs
示例3: AttributeFrequencyIce
/// <summary>
/// Class constructor
/// </summary>
/// <param name="ownerOfAddIn">Owner of addin</param>
public AttributeFrequencyIce(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn)
{
this.ownerOfAddIn = ownerOfAddIn;
resManager = new ResourceManager("Ferda.FrontEnd.AddIns.AttributeFr.Localization_en-US",
Assembly.GetExecutingAssembly());
localizationString = "en-US";
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:11,代码来源:AttributeFrequencyIce.cs
示例4: ExceptionCatcher
/// <summary>
/// Default constructor for the class
/// </summary>
/// <param name="ownerOfAddIn">OwnerofAddIn</param>
/// <param name="form">Parent form</param>
public ExceptionCatcher(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn,
WaitDialog parent)
{
this.projectManager = ownerOfAddIn.ProjectManager;
this.ownerOfAddIn = ownerOfAddIn;
this.parentDialog = parent;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:12,代码来源:ExceptionCatcher.cs
示例5: getStatistics
public override float getStatistics(Ferda.Modules.AbstractQuantifierSetting quantifierSetting, Ice.Current current__)
{
//a+b
return
quantifierSetting.firstContingencyTableRows[0][0] +
quantifierSetting.firstContingencyTableRows[0][1];
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:7,代码来源:R.cs
示例6: WaitDialog
/// <summary>
/// Class constructor
/// </summary>
/// <param name="localePrefs">localeprefs</param>
/// <param name="tprx">Proxy</param>
/// <param name="ownerOfAddIn">Owner of addin</param>
public WaitDialog(string[] localePrefs, AbstractLMTaskFunctionsPrx tprx, Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn)
{
//setting the ResManager resource manager and localization string
string locale;
try
{
locale = localePrefs[0];
localizationString = locale;
locale = "Ferda.FrontEnd.AddIns.WaitDialog.Localization_" + locale;
resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly());
}
catch
{
resManager = new ResourceManager("Ferda.FrontEnd.AddIns.WaitDialog.Localization_en-US",
Assembly.GetExecutingAssembly());
localizationString = "en-US";
}
this.KeyDown += new KeyEventHandler(WaitDialog_KeyDown);
this.tprx = tprx;
this.ownerOfAddIn = ownerOfAddIn;
InitializeComponent();
this.ChangeLocale(this.resManager);
ExceptionCatcher catcher = new ExceptionCatcher(this.ownerOfAddIn, this);
this.tprx.runAction_async(catcher);
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:31,代码来源:WaitDialog.cs
示例7: ExplainTableIce
/// <summary>
/// Class constructor
/// </summary>
/// <param name="ownerOfAddIn">Owner of addin</param>
public ExplainTableIce(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn)
{
this.ownerOfAddIn = ownerOfAddIn;
//setting the ResManager resource manager and localization string
resManager = new ResourceManager("Ferda.FrontEnd.AddIns.ExplainTable.Localization_en-US",
Assembly.GetExecutingAssembly());
localizationString = "en-US";
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:12,代码来源:ExplainTableIce.cs
示例8: BoxExceptionClass
/// <summary>
/// Default constructor of the class
/// </summary>
/// <param name="mod">Modules manager of the application</param>
/// <param name="resManager">Resource manager</param>
/// <param name="box">Box that has thrown the exception</param>
/// <param name="userMessage">Message to be displayed to the user</param>
public BoxExceptionClass(IBoxModule box, string userMessage, Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn)
{
// this.resourceManager = resManager;
this.box = box;
this.userMessage = userMessage;
this.modulesManager = ownerOfAddIn.ProjectManager.ModulesManager;
this.ownerOfAddIn = ownerOfAddIn;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:15,代码来源:BoxExceptionClass.cs
示例9: ResultBrowserIce
public ResultBrowserIce(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn, Ferda.FrontEnd.Properties.IOtherObjectDisplayer Displayer)
{
this.ownerOfAddIn = ownerOfAddIn;
//setting the ResManager resource manager and localization string
resManager = new ResourceManager("Ferda.FrontEnd.AddIns.ResultBrowser.Localization_en-US",
Assembly.GetExecutingAssembly());
localizationString = "en-US";
this.Displayer = Displayer;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:9,代码来源:ResultBrowserIce.cs
示例10: AddFactory
public void AddFactory(Ferda.Modules.BoxModuleFactoryPrx factoryPrx)
{
lock(this)
{
_factories[factoryPrx]=
Ferda.Modules.BoxModuleFactoryPrxHelper.uncheckedCast(
factoryPrx.ice_batchOneway()
);
}
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:10,代码来源:BoxModuleIceFactories.cs
示例11: getStatistics
public override float getStatistics(Ferda.Modules.AbstractQuantifierSetting quantifierSetting, Ice.Current current__)
{
//a/(a+b)
return
(float)quantifierSetting.secondContingencyTableRows[0][0] /
(float)(
quantifierSetting.secondContingencyTableRows[0][0] +
quantifierSetting.secondContingencyTableRows[0][1]
);
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:10,代码来源:TwoConf.cs
示例12: getStatistics
public override float getStatistics(Ferda.Modules.AbstractQuantifierSetting quantifierSetting, Ice.Current current__)
{
//(a+d)/(a+b+c+d)
return
(float)(
quantifierSetting.firstContingencyTableRows[0][0] +
quantifierSetting.firstContingencyTableRows[1][1]
)
/
(float)(
quantifierSetting.firstContingencyTableRows[0][0] +
quantifierSetting.firstContingencyTableRows[0][1] +
quantifierSetting.firstContingencyTableRows[1][0] +
quantifierSetting.firstContingencyTableRows[1][1]
);
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:16,代码来源:EConf.cs
示例13: BoxModule
public BoxModule(Ferda.Modules.BoxModulePrx iceBoxModulePrx, BoxModuleFactoryCreator madeInCreator, Helper helper, ModulesManager modulesManager)
{
this.iceBoxModulePrx = iceBoxModulePrx;
this.madeInCreator = madeInCreator;
this.iceIdentity = Ice.Util.identityToString(
iceBoxModulePrx.ice_getIdentity());
this.helper = helper;
this.modulesManager = modulesManager;
this.managersLocatorI = this.helper.ManagersEngineI.ManagersLocatorI;
foreach(PropertyInfo property in madeInCreator.Properties)
{
this.propertyNames.Add(property.name);
}
//string[] driver = this.MadeInCreator.PropertyDrivingLabel;
//if (driver != null && driver.Length != 0)
//{
// propertyDrivingLabel = driver[0];
//}
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:20,代码来源:BoxModule.cs
示例14: GetProperty_async
public abstract void GetProperty_async(Ferda.Modules.AMI_BoxModule_getProperty callBack, string name);
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:1,代码来源:BoxModuleForManager.cs
示例15: StringSeqSettingModule
public StringSeqSettingModule(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn)
{
this.ownerOfAddIn = ownerOfAddIn;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:4,代码来源:StringSeqSettingModule.cs
示例16: run
/// <summary>
/// Ice run
/// </summary>
/// <param name="boxModuleParam">BoxModuleParams</param>
/// <param name="localePrefs">localeprefs</param>
/// <param name="manager">Manager proxy</param>
/// <param name="__current">Ice context</param>
public override void run(Ferda.Modules.BoxModulePrx boxModuleParam, string[] localePrefs, ManagersEnginePrx manager, Ice.Current __current)
{
string locale;
try
{
locale = localePrefs[0];
localizationString = locale;
locale = "Ferda.FrontEnd.AddIns.ExplainTable.Localization_" + locale;
resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly());
}
catch
{
}
Ferda.Modules.Boxes.DataMiningCommon.DataMatrix.DataMatrixFunctionsPrx prx =
Ferda.Modules.Boxes.DataMiningCommon.DataMatrix.DataMatrixFunctionsPrxHelper.checkedCast(boxModuleParam.getFunctions());
try
{
string label = manager.getProjectInformation().getUserLabel(Ice.Util.identityToString(boxModuleParam.ice_getIdentity()));
Ferda.FrontEnd.AddIns.ExplainTable.ExplainTable control = new ExplainTable(localePrefs, prx.explain(), prx.getDataMatrixInfo(), ownerOfAddIn);
this.ownerOfAddIn.ShowDockableControl(control, resManager.GetString("Explain") + " " + label);
}
catch (Ferda.Modules.NoConnectionInSocketError)
{
MessageBox.Show(resManager.GetString("BoxNotConnected"), resManager.GetString("Error"),
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
catch (Ferda.Modules.BadParamsError ex)
{
if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbConnectionString)
{
MessageBox.Show(resManager.GetString("BadConnectionString"), resManager.GetString("Error"),
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else if (ex.restrictionType == Ferda.Modules.restrictionTypeEnum.DbTable)
{
MessageBox.Show(resManager.GetString("NoDataMatrix"), resManager.GetString("Error"),
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:50,代码来源:ExplainTableIce.cs
示例17: SetConnection
public abstract void SetConnection(string socketName, Ferda.ModulesManager.IBoxModule otherModule);
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:1,代码来源:BoxModuleForManager.cs
示例18: getStatistics
public override float getStatistics(Ferda.Modules.AbstractQuantifierSetting quantifierSetting, Ice.Current current__)
{
return (float)Common.Functions.Max(quantifierSetting.firstContingencyTableRows);
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:4,代码来源:Max.cs
示例19: registerBox
/// <summary>
/// Helper method for registering standard box to Ice Object Adapter
/// </summary>
/// <param name="identity">Name of box</param>
/// <param name="boxInfo">An <see cref="T:Ferda.Modules.Boxes.IBoxInfo"/> implementation for this box</param>
public void registerBox(string identity, Ferda.Modules.Boxes.IBoxInfo boxInfo)
{
Debug.WriteLine("Registering " + identity + "...");
BoxModuleFactoryCreatorI boxModuleFactoryCreator = new BoxModuleFactoryCreatorI(boxInfo, reaper);
Ice.ObjectPrx newPrx = _adapter.add(boxModuleFactoryCreator, Ice.Util.stringToIdentity(identity));
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:11,代码来源:FerdaServiceI.cs
示例20:
void Ferda.Modules.IFunctions.setBoxModuleInfo(Ferda.Modules.BoxModuleI boxModule, Ferda.Modules.Boxes.IBoxInfo boxInfo)
{
this.boxModule = boxModule;
this.boxInfo = boxInfo;
}
开发者ID:BackupTheBerlios,项目名称:ferdadataminer-svn,代码行数:5,代码来源:SampleBoxModuleFunctionsI.cs
注:本文中的Ferda类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论