Skip to content

Commit

Permalink
sa rev again
Browse files Browse the repository at this point in the history
  • Loading branch information
camilo committed Feb 13, 2024
1 parent cb2ad4b commit e4f58c3
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion include/qffmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ extern "C" {
*/

/*! @cond */
float _qFFMath_GetAbnormal( const int i );
float _qFFMath_GetAbnormal( const int i ); //skipcq: CXX-E2000
/*! @endcond */

/** @brief The base of natural logarithms ( e ) given as a single-precision floating-point number*/
Expand Down
30 changes: 15 additions & 15 deletions include/qfis.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extern "C" {
tsmf, /*!< Tsukamoto S-Shape membership function f(a,b) [ Only for ::Tsukamoto FIS ]*/
tzmf, /*!< Tsukamoto Z-Shape membership function f(a,b) [ Only for ::Tsukamoto FIS ]*/
/*! @cond */
_NUM_MFS /*!< Number of supported membership functions*/
_NUM_MFS /*!< Number of supported membership functions*/ //skipcq: CXX-E2000
/*! @endcond */
} qFIS_MF_Name_t;

Expand All @@ -71,7 +71,7 @@ extern "C" {
wtaver, /*!< Weighted average of all rule outputs [ Only for ::Sugeno and ::Tsukamoto FIS ]*/
wtsum, /*!< Weighted sum of all rule outputs [ Only for ::Sugeno FIS ]*/
/*! @cond */
_NUM_DFUZZ /*!< Number of supported defuzzification methods*/
_NUM_DFUZZ /*!< Number of supported defuzzification methods*/ //skipcq: CXX-E2000
/*! @endcond */
} qFIS_DeFuzz_Method_t;

Expand Down Expand Up @@ -226,7 +226,7 @@ extern "C" {
* @details The instance should be initialized using the qFIS_Setup() API.
* @note Do not access any member of this structure directly.
*/
typedef struct _qFIS_s
typedef struct _qFIS_s //skipcq: CXX-E2000
{
/*! @cond */
qFIS_Input_t *input;
Expand Down Expand Up @@ -254,18 +254,18 @@ extern "C" {
} qFIS_t;

/*! @cond */
#define _QFIS_RULES_END ( FIS_RULES_MIN_VALUE + 1 )
#define _QFIS_AND ( FIS_RULES_MIN_VALUE + 2 )
#define _QFIS_OR ( FIS_RULES_MIN_VALUE + 3 )
#define _QFIS_THEN ( FIS_RULES_MIN_VALUE + 4 )

#define _QFIS_IF_STATEMENT ,
#define _QFIS_AND_STATEMENT +1),_QFIS_AND,
#define _QFIS_OR_STATEMENT +1),_QFIS_OR,
#define _QFIS_THEN_STATEMENT +1),_QFIS_THEN,
#define _QFIS_IS_STATEMENT ,(
#define _QFIS_IS_NOT_STATEMENT ,-(
#define _QFIS_END_STATEMENT +1)
#define _QFIS_RULES_END ( FIS_RULES_MIN_VALUE + 1 ) //skipcq: CXX-E2000
#define _QFIS_AND ( FIS_RULES_MIN_VALUE + 2 ) //skipcq: CXX-E2000
#define _QFIS_OR ( FIS_RULES_MIN_VALUE + 3 ) //skipcq: CXX-E2000
#define _QFIS_THEN ( FIS_RULES_MIN_VALUE + 4 ) //skipcq: CXX-E2000

#define _QFIS_IF_STATEMENT , //skipcq: CXX-E2000
#define _QFIS_AND_STATEMENT +1),_QFIS_AND, //skipcq: CXX-E2000
#define _QFIS_OR_STATEMENT +1),_QFIS_OR, //skipcq: CXX-E2000
#define _QFIS_THEN_STATEMENT +1),_QFIS_THEN, //skipcq: CXX-E2000
#define _QFIS_IS_STATEMENT ,( //skipcq: CXX-E2000
#define _QFIS_IS_NOT_STATEMENT ,-( //skipcq: CXX-E2000
#define _QFIS_END_STATEMENT +1) //skipcq: CXX-E2000
/*! @endcond */

/*Rules build keywords*/
Expand Down
4 changes: 2 additions & 2 deletions include/qfp16.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {
typedef int32_t qFP16_t;

/*! @cond */
struct _qFP16_const_s
struct _qFP16_const_s //skipcq: CXX-E2000
{
const qFP16_t
f_e, /* [ e ] The base of natural logarithms, e.*/
Expand Down Expand Up @@ -57,7 +57,7 @@ extern "C" {
/**
* @brief Fixed-point Q16.16 constants
*/
extern const struct _qFP16_const_s qFP16;
extern const struct _qFP16_const_s qFP16; //skipcq: CXX-E2000

/**
* @brief A macro for defining a fixed-point constant value.
Expand Down
2 changes: 1 addition & 1 deletion include/qltisys.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern "C" {
* @details The instance should be initialized using the qLTISys_Setup() API.
* @note Do not access any member of this structure directly.
*/
typedef struct _qLTISys_s
typedef struct _qLTISys_s //skipcq: CXX-E2000
{
/*! @cond */
float (*sysUpdate)( struct _qLTISys_s *sys, float u );
Expand Down
2 changes: 1 addition & 1 deletion include/qnuma.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern "C" {

#include <stdbool.h>

typedef struct _qNumA_state_s
typedef struct _qNumA_state_s //skipcq: CXX-E2000
{
/*! @cond */
float x[ 3 ];
Expand Down
12 changes: 6 additions & 6 deletions include/qssmoother.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ extern "C" {
/*! @cond */
#define qSSmootherPtr_t void
/*abstract class*/
typedef struct _qSSmoother_s
typedef struct _qSSmoother_s //skipcq: CXX-E2000
{
void *vt;
uint8_t init;
} _qSSmoother_t;
} _qSSmoother_t; //skipcq: CXX-E2000
/*! @endcond */

/**
Expand Down Expand Up @@ -266,16 +266,16 @@ extern "C" {
* if ::QSSMOOTHER_TYPE_EXPW, a pointer to a value between [ 0 < @a lambda < 1 ]
* that represents the forgetting factor.
*
* if ::QSSMOOTHER_TYPE_DESF, an array with three values. The first element
* if ::QSSMOOTHER_TYPE_DESF, an array with three values. The first element
* [ 0 < @a alpha < 1 ] that represents the weight for the level, the second,
* [ 0 < @a beta < 1 ] weight for the trend. The third element with the number
* of step for the forecast, should be an integer value greater or equal to
* of step for the forecast, should be an integer value greater or equal to
* zero.
*
*
* if ::QSSMOOTHER_TYPE_ALNF, an array with two values. The first element
* with learning rate [ 0 < @a alpha < 1 ]. The second element with the
* momentum [ 0 < @a mu < 1 ].
*
*
* @param[in] window The filter window and coefficients. Depends of the type
* selected:
*
Expand Down
6 changes: 3 additions & 3 deletions qfp16.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/*used only for internal operations*/
/*! @cond */
struct _qFP16_intern_s
struct _qFP16_intern_s //skipcq: CXX-E2000
{
const qFP16_t
exp_max,
Expand All @@ -27,7 +27,7 @@ struct _qFP16_intern_s
integer_mask;
};

static const struct _qFP16_intern_s intern = {
static const struct _qFP16_intern_s intern = { //skipcq: CXX-E2000
/*exp_max*/ 681391,
/*f_2*/ 131072,
/*f_3*/ 196608,
Expand All @@ -41,7 +41,7 @@ static const struct _qFP16_intern_s intern = {
/*integer_mask*/ 0xFFFF0000U
};

const struct _qFP16_const_s qFP16 = {
const struct _qFP16_const_s qFP16 = { //skipcq: CXX-E2000
/*f_e*/ 178145,
/*f_log2e*/ 94548,
/*f_log10e*/ 28462,
Expand Down

0 comments on commit e4f58c3

Please sign in to comment.