MCPcopy Create free account
hub / github.com/avaneev/biteopt / init

Method init

biteort.h:151–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 */
150
151 void init( const double* const InitCent = NULL,
152 const double* const InitSigma = NULL )
153 {
154 memset( CovParamsBuf, 0, ParamCount * ParamCount *
155 sizeof( CovParamsBuf[ 0 ]));
156
157 memset( BParamsBuf, 0, ParamCount * ParamCount *
158 sizeof( BParamsBuf[ 0 ]));
159
160 int i;
161
162 for( i = 0; i < ParamCount; i++ )
163 {
164 CovParams[ i ][ i ] = 1.0;
165 BParams[ i ][ i ] = 1.0;
166 CentParams[ i ] = ( InitCent == NULL ? 0.0 : InitCent[ i ]);
167 DParams[ i ] = ( InitSigma == NULL ? 0.25 : InitSigma[ i ]);
168 DParamsN[ i ] = DParams[ i ];
169 }
170
171 spc = 0.0;
172 }
173
174 /**
175 * Function performs rotation matrix update.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected