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

Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
RFTesterBackend.ResourceManagers.SOMWrapper Class Reference

Wrapper around native implementation of self organising maps. More...

## Classes
struct | PointWithId
| Helper structure. More...

## Public Member Functions
static IntPtr | initSOM (double[,] data, int datasetSize, int dims)
static void | deletePointWithIdArray (IntPtr toDel)
static void | deletePointArray (IntPtr toDel)

## Static Public Member Functions
static void | InitSOM_ ()
| Initializes SOM object. More...
static PointWithId[] | CreateSOMRepresentants (long[] list, double[] probablities, long xdim, long ydim, long rlen, bool useCos, bool forceRepre)
| Returns selected representants of clusters in helper structure with additional information. More...
static PointWithId[] | CreateWeightedSOMRepresentants (long[] list, double[] probablities, long xdim, long ydim, long rlen, bool useCos, bool forceRepre)
| Returns selected representants of clusters in helper structure with additional information. More...
static void | MarshalUnmananagedArray2Struct< T > (IntPtr unmanagedArray, int length, out T[] mangagedArray)
| Helper function to unmarshall arrays. More...

## Private Member Functions
static IntPtr | getSOMRepresentants (long[] list, ref int size, double[] probabilities, IntPtr SOMPtr, bool useCos, bool forceRepre, bool mostProbab, long xdim, long ydim, long rlen)

## Static Private Attributes
static object | SOMSync = new object()
| Synchronization object. More...
static IntPtr | SOMPtr
| Pointer to SOM native class. More...

## Detailed Description

Wrapper around native implementation of self organising maps.

## Member Function Documentation

## ◆ CreateSOMRepresentants()

static PointWithId [] RFTesterBackend.ResourceManagers.SOMWrapper.CreateSOMRepresentants | ( | long[] | list,
|  | double[] | probablities,
|  | long | xdim,
|  | long | ydim,
|  | long | rlen,
|  | bool | useCos,
|  | bool | forceRepre
| ) |  |
| inlinestatic

Returns selected representants of clusters in helper structure with additional information.

Representants are selected as most probable from clusters.

Parameters

  list |
  probablities |
  xdim |
  ydim |
  rlen |
  useCos |
  forceRepre |

Returns

## ◆ CreateWeightedSOMRepresentants()

static PointWithId [] RFTesterBackend.ResourceManagers.SOMWrapper.CreateWeightedSOMRepresentants | ( | long[] | list,
|  | double[] | probablities,
|  | long | xdim,
|  | long | ydim,
|  | long | rlen,
|  | bool | useCos,
|  | bool | forceRepre
| ) |  |
| inlinestatic

Returns selected representants of clusters in helper structure with additional information.

Representants are selected as weighted random example from clusters.

Parameters

  list |
  probablities |
  xdim |
  ydim |
  rlen |
  useCos |
  forceRepre |

Returns

## ◆ deletePointArray()

static void RFTesterBackend.ResourceManagers.SOMWrapper.deletePointArray | ( | IntPtr | toDel | ) |

## ◆ deletePointWithIdArray()

static void RFTesterBackend.ResourceManagers.SOMWrapper.deletePointWithIdArray | ( | IntPtr | toDel | ) |

## ◆ getSOMRepresentants()

static IntPtr RFTesterBackend.ResourceManagers.SOMWrapper.getSOMRepresentants | ( | long[] | list,
|  | ref int | size,
|  | double[] | probabilities,
|  | IntPtr | SOMPtr,
|  | bool | useCos,
|  | bool | forceRepre,
|  | bool | mostProbab,
|  | long | xdim,
|  | long | ydim,
|  | long | rlen
| ) |  |
| private

## ◆ initSOM()

static IntPtr RFTesterBackend.ResourceManagers.SOMWrapper.initSOM | ( | double | data[,],
|  | int | datasetSize,
|  | int | dims
| ) |  |

## ◆ InitSOM_()

static void RFTesterBackend.ResourceManagers.SOMWrapper.InitSOM_ | ( |  | ) |
| inlinestatic

Initializes SOM object.

## ◆ MarshalUnmananagedArray2Struct< T >()

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

Helper function to unmarshall arrays.

Template Parameters

  T |

Parameters

  unmanagedArray |
  length |
  mangagedArray |

## Member Data Documentation

## ◆ SOMPtr

IntPtr RFTesterBackend.ResourceManagers.SOMWrapper.SOMPtr
| staticprivate

Pointer to SOM native class.

## ◆ SOMSync

object RFTesterBackend.ResourceManagers.SOMWrapper.SOMSync = new object()
| staticprivate

Synchronization object.

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

- RFTesterBackend/ResourceManagers/SOMWrapper.cs