Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dnf_composer::element::CollapseParameters Struct Referencefinal

Parameters for a Collapse (2D -> 1D) element. More...

#include <collapse.h>

Inheritance diagram for dnf_composer::element::CollapseParameters:
Collaboration diagram for dnf_composer::element::CollapseParameters:

Public Member Functions

 CollapseParameters (const CompressionType compression=CompressionType::SUM, const ProjectionAxis keepAxis=ProjectionAxis::X, const ElementDimensions &inputDimensions=ElementDimensions{ 100, 100, 1.0, 1.0 })
 Construct Collapse parameters.
 
bool operator== (const CollapseParameters &other) const
 
std::string toString () const override
 
- Public Member Functions inherited from dnf_composer::element::ElementSpecificParameters
 ElementSpecificParameters ()=default
 
void print () const
 
virtual ~ElementSpecificParameters ()=default
 

Public Attributes

CompressionType compression
 Reduction applied along the collapsed axis.
 
ElementDimensions inputDimensions
 Spatial dimensions of the 2D source field.
 
ProjectionAxis keepAxis
 Axis kept in the 1D output (the other is collapsed).
 

Detailed Description

Parameters for a Collapse (2D -> 1D) element.

Constructor & Destructor Documentation

◆ CollapseParameters()

dnf_composer::element::CollapseParameters::CollapseParameters ( const CompressionType  compression = CompressionType::SUM,
const ProjectionAxis  keepAxis = ProjectionAxis::X,
const ElementDimensions inputDimensions = ElementDimensions{ 100, 100, 1.0, 1.0 } 
)
inlineexplicit

Construct Collapse parameters.

Parameters
compressionReduction along the collapsed axis (default SUM).
keepAxisAxis kept in the output (default X -> collapse over Y).
inputDimensionsDimensions of the 2D source field.

Member Function Documentation

◆ operator==()

bool dnf_composer::element::CollapseParameters::operator== ( const CollapseParameters other) const
inline

◆ toString()

std::string dnf_composer::element::CollapseParameters::toString ( ) const
inlineoverridevirtual

Implements dnf_composer::element::ElementSpecificParameters.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ compression

CompressionType dnf_composer::element::CollapseParameters::compression

Reduction applied along the collapsed axis.

◆ inputDimensions

ElementDimensions dnf_composer::element::CollapseParameters::inputDimensions

Spatial dimensions of the 2D source field.

◆ keepAxis

ProjectionAxis dnf_composer::element::CollapseParameters::keepAxis

Axis kept in the 1D output (the other is collapsed).


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