public class IntVector extends Object implements Serializable
Data structure for vector of integer type
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
IntVector(int size) |
IntVector(int[] vector) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
int inc) |
void |
add(IntVector newVector) |
void |
assign(int initValue) |
void |
assign(IntVector newVector) |
IntVector |
copy() |
double |
distance() |
double |
distance(IntVector origin) |
int |
dotProduct(IntVector newVector) |
int |
get(int index) |
double |
getAvgValue() |
int |
getDimWithMaxValue() |
int |
getMaxValue() |
int |
getMinValue() |
int |
getSummation() |
void |
multiply(int rate) |
int[] |
rank(boolean desc) |
void |
set(int index,
int value) |
int |
size() |
public IntVector copy()
public void assign(int initValue)
public void assign(IntVector newVector)
public void multiply(int rate)
public void add(IntVector newVector)
public void add(int index,
int inc)
public int get(int index)
public void set(int index,
int value)
public int size()
public double distance()
public double distance(IntVector origin)
public int[] rank(boolean desc)
public int getDimWithMaxValue()
public int getMaxValue()
public int getMinValue()
public double getAvgValue()
public int getSummation()
public int dotProduct(IntVector newVector)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.