Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gnn_dataset_view : A view for datasets.
[gnn_dataset : Datasets for Training.]


Detailed Description

The gnn_dataset_view : A view for datasets. is a gnn_dataset : Datasets for Training. that provides a transparent view for a slice of a ref gnn_dataset, acting as it where a normal dataset.

A gnn_subset can be built upon an arbitrary gnn_dataset : Datasets for Training.. It provides a view of a slice of the underlying dataset. For example, a subrange of another dataset can be described with a view, or two views can be made which provide access to the even and odd patterns of a dataset.

A view consist of a starting index , a stride and a the number of patterns . So, the ith-pattern of the dataset view corresponds to the underlying dataset's pattern with index

When building a gnn_dataset_view : A view for datasets. upon a given gnn_dataset : Datasets for Training., the gnn_dataset_view : A view for datasets. structure won't own the source-dataset. That means that if you destroy the gnn_dataset_view : A view for datasets. structure, the underlying gnn_dataset : Datasets for Training. won't be destroyed. It should be destroyed manually.

Typedefs

typedef _gnn_dataset_view gnn_dataset_view
 The datatype for a dataset view.


Functions

int gnn_dataset_view_reset (gnn_dataset *set)
 The "reset" function for a gnn_dataset_view.

int gnn_dataset_view_get (gnn_dataset *set, size_t k, gsl_vector **x, gsl_vector **t, double *p)
 The "get" function for a gnn_dataset_view.

void gnn_dataset_view_destroy (gnn_dataset *set)
 Destroy function.

gnn_datasetgnn_dataset_view_with_stride_new (gnn_dataset *data, size_t start, size_t stride, size_t size)
 Builds a new dataset view.

gnn_datasetgnn_dataset_view_new (gnn_dataset *data, size_t start, size_t size)
 Builds a new dataset view.

gnn_datasetgnn_dataset_view_get_dataset (gnn_dataset *set)
 Returns a pointer to the internal gnn_dataset.


Typedef Documentation

typedef struct _gnn_dataset_view gnn_dataset_view
 

This is the datatype for a dataset view.

Definition at line 48 of file gnn_dataset_view.h.


Function Documentation

void gnn_dataset_view_destroy gnn_dataset   set [static]
 

This is the gnn_dataset_view : A view for datasets. destroy function.

Parameters:
set  A pointer to a gnn_dataset_view : A view for datasets. dataset.

Definition at line 154 of file gnn_dataset_view.c.

int gnn_dataset_view_get gnn_dataset   set,
size_t    k,
gsl_vector **    x,
gsl_vector **    t,
double *    p
[static]
 

This function is returns the k-th pattern in the dataset view.

Parameters:
set  A pointer to a gnn_dataset_view : A view for datasets..
k  The index of the pattern to be retrieved.
x  A reference for the input pattern.
t  A reference for the output pattern.
p  A pointer to a double for the pattern weight.
Returns:
0 if succeeded.

Definition at line 126 of file gnn_dataset_view.c.

gnn_dataset* gnn_dataset_view_get_dataset gnn_dataset   set
 

This function returns a pointer to the internal gnn_dataset : Datasets for Training. structure, which is used as source.

Parameters:
set  A pointer to a gnn_dataset_view : A view for datasets. dataset.
Returns:
Returns a pointer to the internal dataset.

Definition at line 277 of file gnn_dataset_view.c.

gnn_dataset* gnn_dataset_view_new gnn_dataset   data,
size_t    start,
size_t    size
 

This functions creates a new view for a given dataset. The stride is assumed to be 1.

Parameters:
data  The gnn_dataset : Datasets for Training. which should serve as pattern source.
start  The starting index.
size  The amount of patterns in the new dataset.
Returns:
Returns a pointer to a new gnn_dataset_view : A view for datasets..

Definition at line 261 of file gnn_dataset_view.c.

int gnn_dataset_view_reset gnn_dataset   set [static]
 

This function resets the gnn_dataset_view : A view for datasets..

Parameters:
set  A pointer to a gnn_dataset_view : A view for datasets..
Returns:
0 if succeeded.

Definition at line 98 of file gnn_dataset_view.c.

gnn_dataset* gnn_dataset_view_with_stride_new gnn_dataset   data,
size_t    start,
size_t    stride,
size_t    size
 

This functions creates a new view for a given dataset.

Parameters:
data  The gnn_dataset : Datasets for Training. which should serve as pattern source.
start  The starting index.
stride  The stride for each element.
size  The amount of patterns in the new dataset.
Returns:
Returns a pointer to a new gnn_dataset_view : A view for datasets..

Definition at line 185 of file gnn_dataset_view.c.


Generated on Sun Jun 13 20:51:43 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18