Compartilhar via


Combination.NWise Method

Indicates that the given variables, parameters, or expressions are in n-wise interaction, and for each subset of n values in the set of values Spec Explorer should produce a full Cartesian product space.

Namespace: Microsoft.Modeling
Assembly: Microsoft.Xrt.Runtime (in Microsoft.Xrt.Runtime.dll)

Usage

'Usage

Syntax

'Declaration
public static void NWise (
    int n,
    params Object[] values
)

Parameters

  • n
    The interaction strength; in other words, the number of values to choose for each subset of values for which to produce a full Cartesian product space.
  • values
    The set of values that are in n-wise interaction.

Exceptions

Exception type Condition
ArgumentException

values contains less than n elements.

Remarks

For n equal to two, the NWise method is equivalent to the Pairwise method. For n equal to the number of elements in values, the NWise method is equivalent to the Interaction method.

The statement NWise(3, w, x, y, z); is equivalent to the combined statements Interaction(w,x,y); Interaction(w,x,z); Interaction(w,y,z); Interaction(x,y,z);.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003

See Also

Reference

Combination Class
Combination Members
Microsoft.Modeling Namespace
Combination.Interaction Method
Pairwise
PairwiseDeep
NWiseDeep

Other Resources

Parameter Generation