close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1418 closed task (fixed)

[MatQuery] Función para la comprobación de que una matriz es binaria

Reported by: Víctor de Buen Remiro Owned by: Víctor de Buen Remiro
Priority: highest Milestone: Mantainance
Component: Math Version: 2.0.1
Severity: blocker Keywords:
Cc:

Description

Es necesario incorporar a MatQuery una función para la comprobación de que una matriz es binaria para el chequeo de modelos booleanos como el Probit o el Logit

Change History (7)

comment:1 Changed 13 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

(In [4068]) Fixes #1418
Added new methods

  • MatchRowsWithValues
  • SelectRowsWithValues
  • MatchRowsIsBoolean
  • SelectRowsIsBoolean

comment:2 Changed 13 years ago by Víctor de Buen Remiro

(In [4069]) Fixes #1418
Added new method

  • IsBoolean

comment:3 Changed 13 years ago by Víctor de Buen Remiro

Es necesario usar la versión MatQuery.3.3 para acceder a estos nuevos métodos.

comment:4 Changed 13 years ago by Víctor de Buen Remiro

(In [4071]) Fixes #1418
Renaming methods

comment:5 Changed 13 years ago by Víctor de Buen Remiro

Estas son las descripciones de las nuevas funciones:

  • MatchRowsWithValues: Returns a column matrix with True in rows where given column matrix M has one of the specified values, that might even be the unknown value.
    VMatrix MatchRowsWithValues (VMatrix M, Set values) 
    
  • SelectRowsWithValues: Selects rows of a column matrix whose cell is one of the specified values.
    Set SelectRowsWithValues(VMatrix M, Set values) 
    
  • MatchRowsBoolean: Returns a column matrix with True in rows where given column matrix M is 0 or 1.
    VMatrix MatchRowsBoolean (VMatrix M) 
    
  • SelectRowsBoolean : Selects rows of a column matrix whose cell is one of the specified values.
    Set SelectRowsBoolean (VMatrix M)
    
  • IsBoolean : Returns true if all cells of given matrix are 0 or 1.
    Real IsBoolean (VMatrix M) 
    

comment:6 Changed 13 years ago by Víctor de Buen Remiro

(In [4072]) Fixes #1418
Added new method

  • IsBooleanOrUnk

comment:7 Changed 13 years ago by Víctor de Buen Remiro

(In [4073]) Fixes #1418
Using MatQuery::IsBoolean to check output of probit filter
Using MatQuery::IsBooleanOrUnk to check output of censored probit filter

Note: See TracTickets for help on using tickets.