public class Item
extends java.lang.Object
Title: Item
Implements an item of a dataset, with their values and their attributes/columns references.Copyright: Alberto Copyright (c) 2006
Company: Mi Casa
Constructor and Description |
---|
Item()
Default constructor.
|
Item(int k)
Creates an item with k values but empty.
|
Item(int valor,
int columna,
int support)
Creates an item with one value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
creaItem(Item uno,
Item dos)
Creates a new item (if possible) of k+1 size from two k items.
|
int[] |
getColumnas()
Returns a copy of the columns references for each value.
|
int[] |
getItem()
Returns a copy of the values of the item.
|
int |
getSupport()
Returns the support value for the item.
|
void |
print()
Prints on the standard output the item information.
|
void |
setSupport(int support)
Sets the support value for the item with the one given.
|
public Item()
public Item(int k)
k
- int NĂºmero de values.public Item(int valor, int columna, int support)
valor
- int the given valuecolumna
- int index of the attribute/columnsupport
- int support value for the item.public boolean creaItem(Item uno, Item dos)
uno
- Item first ITEMdos
- Item second ITEMpublic int[] getItem()
public int[] getColumnas()
public void setSupport(int support)
support
- int the value to be set.public int getSupport()
public void print()