RFTester Tool for automated testing relevance feedback algorithms fro known-item search

Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
RFTesterBackend.ResourceManagers.RandomSampleDLLWrapper Class Reference

Wrapper for random sampling with native library More...

## Static Public Member Functions
static long[] | RandomWeightedSample (double[] values, int count)
| Calls native library and returns weighted sample from distribution without repetition. More...

## Private Member Functions
static IntPtr | randomWeightedSample (double[] values, int length, int count)

## Static Private Member Functions
static void | MarshalUnmananagedArray2Struct< T > (IntPtr unmanagedArray, int length, out T[] mangagedArray)

## Detailed Description

Wrapper for random sampling with native library

## Member Function Documentation

## ◆ MarshalUnmananagedArray2Struct< T >()

static void RFTesterBackend.ResourceManagers.RandomSampleDLLWrapper.MarshalUnmananagedArray2Struct< T > | ( | IntPtr | unmanagedArray,
|  | int | length,
|  | out T[] | mangagedArray
| ) |  |
| inlinestaticprivate

## ◆ RandomWeightedSample()

static long [] RFTesterBackend.ResourceManagers.RandomSampleDLLWrapper.RandomWeightedSample | ( | double[] | values,
|  | int | count
| ) |  |
| inlinestatic

Calls native library and returns weighted sample from distribution without repetition.

Parameters

  values |
  count |

Returns

## ◆ randomWeightedSample()

static IntPtr RFTesterBackend.ResourceManagers.RandomSampleDLLWrapper.randomWeightedSample | ( | double[] | values,
|  | int | length,
|  | int | count
| ) |  |
| private

The documentation for this class was generated from the following file:

- RFTesterBackend/ResourceManagers/RandomSampleDLLWrapper.cs