本文整理汇总了C#中Ferda类的典型用法代码示例。如果您正苦于以下问题:C# Ferda类的具体用法?C# Ferda怎么用?C# Ferda使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Ferda类属于命名空间,在下文中一共展示了Ferda类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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]
))
;
}
示例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";
}
示例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;
}
示例5: getStatistics
public override float getStatistics(Ferda.Modules.AbstractQuantifierSetting quantifierSetting, Ice.Current current__)
{
//a+b
return
quantifierSetting.firstContingencyTableRows[0][0] +
quantifierSetting.firstContingencyTableRows[0][1];
}
示例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);
}
示例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";
}
示例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;
}
示例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;
}
示例10: AddFactory
public void AddFactory(Ferda.Modules.BoxModuleFactoryPrx factoryPrx)
{
lock(this)
{
_factories[factoryPrx]=
Ferda.Modules.BoxModuleFactoryPrxHelper.uncheckedCast(
factoryPrx.ice_batchOneway()
);
}
}
示例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]
);
}
示例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]
);
}
示例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];
//}
}
示例14: GetProperty_async
public abstract void GetProperty_async(Ferda.Modules.AMI_BoxModule_getProperty callBack, string name);
示例15: StringSeqSettingModule
public StringSeqSettingModule(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn)
{
this.ownerOfAddIn = ownerOfAddIn;
}