本文整理匯總了C#中System.Environment.Attenuation方法的典型用法代碼示例。如果您正苦於以下問題:C# Environment.Attenuation方法的具體用法?C# Environment.Attenuation怎麽用?C# Environment.Attenuation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Environment
的用法示例。
在下文中一共展示了Environment.Attenuation方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Eyring
///<summary>
/// Sabine Reverberation Time : T60 = 0.161V/ln(1-a)S
///</summary>
public static void Eyring(Environment.Scene Room, double volume, ref double[] T60)
{
T60 = new double[8];
if (Room == null) return;
double TA;
for (int t = 0; t <= 7; t++)
{
TA = 0;
for (int q = 0; q <= Room.Count() - 1; q++)
{
TA += (Room.SurfaceArea(q) * (-System.Math.Log(1 - Room.AbsorptionValue[q].Coefficient_A_Broad(t),System.Math.E)));
}
T60[t] = 0.161 * volume / (TA + 4 * Room.Attenuation(0)[t] * volume);
}
}
示例2: Sabine
///<summary>
/// Sabine Reverberation Time : T60 = 0.161V/A
///</summary>
public static void Sabine(Environment.Scene Room, double volume, ref double[] T60)
{
T60 = new double[8];
if (Room == null) return;
double TA;
for (int t = 0; t <= 7; t++)
{
TA = 0;
for (int q = 0; q <= Room.Count() - 1; q++)
{
TA += (Room.SurfaceArea(q) * Room.AbsorptionValue[q].Coefficient_A_Broad(t));
}
T60[t] = (0.161 * (volume / (TA + (4 * Room.Attenuation(0)[t] * volume))));
}
}