LISp-Miner Control Language Reference, version: 27.14.01 of 8 Oct 2017

Class CategoryInterval

Attribute category defined by interval of values
inherits from Category
namespace: lm.prepro

Constructor

CategoryInterval()
Creates a new object of this class

Parameters

  • luaTable - to store named parameters

Obligatory named parameters

  • name : string - unique name for the new CF-Miner Category
  • pAttribute : Attribute - attribute this category belongs to

Optional named parameters

  • nOrder : integer - position of this category in the list of categories of its attribute

Properties List

Attribute  the Attribute, this category belongs to
Frequency  Number of objects of analyzed data matrix belonging to this category (calls calcCategoryFrequencies if necessary)
ID  Unique identifier (primary key) of the object
IncludeNULLFlag  If this category covers NULL-values
IncludeNullFlag  If this category covers NULL-values
IntervalCount  Number of defined intervals
Name  Unique name of this object. Cannot be empty.
NameHTML  HTML representation of this category
Note  Text comment to this object (up to 255 characters)
Order  Order-index of the category in array of categories of its attribute
XCategoryFlag  If this category is the X-Category

Methods List

canDel () Returns true if the object could be deleted (is not used)
findInterval () Tries to look-up a Interval with a unique property given as parameter. Just one parameter has to be specified. Returns nil if Interval with this property doesn't exists.
getAttribute () Returns the Attribute this category belongs to, the value of Attribute property
getCategorySubTypeCode () Returns code of sub-type of category, see CategorySubType codes
getCategorySubTypeKey () Returns unique string key of sub-type of category
getCategorySubTypeName () Returns string representation of sub-type of category
getFrequency () Returns the value of Frequency property (calls calcCategoryFrequencies if necessary)
getID () Returns unique identifier (primary key) of the object
getIntervalCount () Returns the value of IntervalCount property
getName () Returns the value of Name property, name of this object
getNameDefault () Returns default name for this category
getNote () Returns the value of Note property
getOrder () Returns the value of Order property
getRowCount () Returns the value of Frequency property (calls calcCategoryFrequencies if necessary)
isIncludeNULLFlag () Returns the value of IncludeNullFlag property
isIncludeNullFlag () Returns the value of IncludeNullFlag property
isRowInCategory () Returns true if the value in database row identified by its index and the corresponding column belongs to this category (calls calcCategoryFrequencies if necessary)
isXCategoryFlag () Returns the value of XCategoryFlag property
onAdd () Store the newly created object into metabase
onDel () Delete the object from metabase (fails if canDel returns false)
onUpdate () Save changes made to the object into metabase
prepareIntervalArray () Returns array of Intervals (intervals in this category)
setIncludeNULLFlag () Sets the value of IncludeNullFlag property
setIncludeNullFlag () Sets the value of IncludeNullFlag property
setName () Sets the value of Name property, name of this object (must be unique)
setNote () Sets the value of Note property
setOrder () Sets the value of Order property
setXCategoryFlag () Sets the value of XCategoryFlag property

Properties

Attribute  (read-only) : Attribute
the Attribute, this category belongs to
Intherited from: Category
Frequency  (read-only) : integer
Number of objects of analyzed data matrix belonging to this category (calls calcCategoryFrequencies if necessary)
Intherited from: Category
ID  (read-only) : integer
Unique identifier (primary key) of the object
Intherited from: LMWrap
IncludeNULLFlag : boolean
If this category covers NULL-values
Intherited from: Category
IncludeNullFlag : boolean
If this category covers NULL-values
Intherited from: Category
IntervalCount  (read-only) : integer
Number of defined intervals
Name : string
Unique name of this object. Cannot be empty.
Intherited from: LMWrapName
NameHTML  (read-only) : string
HTML representation of this category
Intherited from: Category
Note : string
Text comment to this object (up to 255 characters)
Intherited from: LMWrapName
Order  (read-only) : integer
Order-index of the category in array of categories of its attribute
Intherited from: Category
XCategoryFlag : boolean
If this category is the X-Category
Intherited from: Category

Methods

canDel() : boolean
Returns true if the object could be deleted (is not used)
Intherited from: LMWrap

Returns

  • boolean
findInterval() : Interval
Tries to look-up a Interval with a unique property given as parameter. Just one parameter has to be specified. Returns nil if Interval with this property doesn't exists.

Parameters

  • luaTable - to store named parameters

Optional named parameters

  • nID : integer - an ID of the Interval to look-up

Returns

getAttribute() : Attribute
Returns the Attribute this category belongs to, the value of Attribute property
Intherited from: Category

Returns

getCategorySubTypeCode() : integer
Returns code of sub-type of category, see CategorySubType codes
Intherited from: Category

Returns

  • integer
getCategorySubTypeKey() : string
Returns unique string key of sub-type of category
Intherited from: Category

Returns

  • string
getCategorySubTypeName() : string
Returns string representation of sub-type of category
Intherited from: Category

Returns

  • string
getFrequency() : integer
Returns the value of Frequency property (calls calcCategoryFrequencies if necessary)
Intherited from: Category

Returns

  • integer
getID() : integer
Returns unique identifier (primary key) of the object
Intherited from: LMWrap

Returns

  • integer
getIntervalCount() : integer
Returns the value of IntervalCount property

Returns

  • integer
getName() : string
Returns the value of Name property, name of this object
Intherited from: LMWrapName

Returns

  • string
getNameDefault() : string
Returns default name for this category
Intherited from: Category

Returns

  • string
getNote() : string
Returns the value of Note property
Intherited from: LMWrapName

Returns

  • string
getOrder() : integer
Returns the value of Order property
Intherited from: Category

Returns

  • integer
getRowCount() : integer
Returns the value of Frequency property (calls calcCategoryFrequencies if necessary)
Intherited from: Category

Returns

  • integer
isIncludeNULLFlag() : boolean
Returns the value of IncludeNullFlag property
Intherited from: Category

Returns

  • boolean
isIncludeNullFlag() : boolean
Returns the value of IncludeNullFlag property
Intherited from: Category

Returns

  • boolean
isRowInCategory()
Returns true if the value in database row identified by its index and the corresponding column belongs to this category (calls calcCategoryFrequencies if necessary)
Intherited from: Category

Parameters

  • integer - index of a database table row

Returns

  • boolean
isXCategoryFlag() : boolean
Returns the value of XCategoryFlag property
Intherited from: Category

Returns

  • boolean
onAdd()
Store the newly created object into metabase
Intherited from: LMWrap
onDel()
Delete the object from metabase (fails if canDel returns false)
Intherited from: LMWrap
onUpdate()
Save changes made to the object into metabase
Intherited from: LMWrap
prepareIntervalArray() : luaTable
Returns array of Intervals (intervals in this category)

Returns

  • luaTable
setIncludeNULLFlag( boolean )
Sets the value of IncludeNullFlag property
Intherited from: Category

Parameters

  • boolean
setIncludeNullFlag( boolean )
Sets the value of IncludeNullFlag property
Intherited from: Category

Parameters

  • boolean
setName( string )
Sets the value of Name property, name of this object (must be unique)
Intherited from: LMWrapName

Parameters

  • string - cannot be empty
setNote( string )
Sets the value of Note property
Intherited from: LMWrapName

Parameters

  • string
setOrder( integer )
Sets the value of Order property
Intherited from: Category

Parameters

  • integer
setXCategoryFlag( boolean )
Sets the value of XCategoryFlag property
Intherited from: Category

Parameters

  • boolean