本文整理汇总了C#中IFilter.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# IFilter.Clone方法的具体用法?C# IFilter.Clone怎么用?C# IFilter.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IFilter
的用法示例。
在下文中一共展示了IFilter.Clone方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FrequencyResponseFromQuadratureTimeDomain
/// <summary>
/// Sweeps across a filter in quadrature domains (sine and cosine) to find the
/// frequency response. Is interesting because this is a simulation of a real filter,
/// which may be the only way to analyze a black box object that implements IFilter.
/// </summary>
public FrequencyResponseFromQuadratureTimeDomain(IFilter Filter,
double startFreq, double stopFreq, double operateFreq, double runTime, int sampleRate)
{
samplerate = (int)sampleRate;
numPoints = (int)(runTime * operateFreq);
opFreq = operateFreq;
sweep = new FrequencySweep(startFreq, stopFreq, 1 / operateFreq, numPoints);
iFilter = (IFilter)Filter.Clone();
qFilter = (IFilter)Filter.Clone();
iFilter.Load(0.0);
qFilter.Load(1.0);
}
示例2: CrossStereoFilter
/// <summary>
/// Hll = Hrr, Hlr = Hrlの場合。
/// </summary>
/// <param name="ll">特性 Hll を持つフィルタ</param>
/// <param name="lr">特性 Hlr を持つフィルタ</param>
public CrossStereoFilter(IFilter ll, IFilter lr)
{
this.ll = ll;
this.lr = lr;
this.rl = (IFilter)lr.Clone();
this.rr = (IFilter)ll.Clone();
}
示例3: StereoFilter
/// <summary>
/// Hl = Hr の場合。
/// </summary>
/// <param name="l">特性 Hl を持つフィルタ</param>
public StereoFilter(IFilter l)
{
this.l = l;
this.r = (IFilter)l.Clone();
}
示例4: FilteredPipe
public FilteredPipe(Queue input, Queue output, IFilter filter)
: this(input, output, filter, (IFilter)filter.Clone())
{
}