C# Class Kooboo.Commerce.Recommendations.Engine.Formulas

显示文件 Open project: Kooboo/Ecommerce

Public Methods

Method Description
TimeAttenuationFactor ( System.DateTime timestamp1, System.DateTime timestamp2, float alpha ) : double

计算时间衰减因子。

Method Details

TimeAttenuationFactor() public static method

计算时间衰减因子。
public static TimeAttenuationFactor ( System.DateTime timestamp1, System.DateTime timestamp2, float alpha ) : double
timestamp1 System.DateTime
timestamp2 System.DateTime
alpha float
return double