android-matrix-algorithms

Java library of precomputed matrix algorithms aimed to be used on Android.

License

License

GroupId

GroupId

nz.ac.waikato.cms.adams
ArtifactId

ArtifactId

android-matrix-algorithms
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

android-matrix-algorithms
Java library of precomputed matrix algorithms aimed to be used on Android.
Project Organization

Project Organization

University of Waikato, Hamilton, NZ
Source Code Management

Source Code Management

https://github.com/waikato-datamining/android-matrix-algorithms

Download android-matrix-algorithms

How to add to project

<!-- https://jarcasting.com/artifacts/nz.ac.waikato.cms.adams/android-matrix-algorithms/ -->
<dependency>
    <groupId>nz.ac.waikato.cms.adams</groupId>
    <artifactId>android-matrix-algorithms</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/nz.ac.waikato.cms.adams/android-matrix-algorithms/
implementation 'nz.ac.waikato.cms.adams:android-matrix-algorithms:0.0.3'
// https://jarcasting.com/artifacts/nz.ac.waikato.cms.adams/android-matrix-algorithms/
implementation ("nz.ac.waikato.cms.adams:android-matrix-algorithms:0.0.3")
'nz.ac.waikato.cms.adams:android-matrix-algorithms:jar:0.0.3'
<dependency org="nz.ac.waikato.cms.adams" name="android-matrix-algorithms" rev="0.0.3">
  <artifact name="android-matrix-algorithms" type="jar" />
</dependency>
@Grapes(
@Grab(group='nz.ac.waikato.cms.adams', module='android-matrix-algorithms', version='0.0.3')
)
libraryDependencies += "nz.ac.waikato.cms.adams" % "android-matrix-algorithms" % "0.0.3"
[nz.ac.waikato.cms.adams/android-matrix-algorithms "0.0.3"]

Dependencies

test (3)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.3.0
org.junit.platform : junit-platform-launcher jar 1.3.0
org.junit.platform : junit-platform-runner jar 1.3.0

Project Modules

There are no modules declared in this project.

android-matrix-algorithms

Java library to be used on Android, simply applies precomputed matrices etc. as generated by py-matrix-algorithms.

Algorithms

Usage

Use the following code to load the preprocessing map from the serialized file map.bin (with one and two named pipelines) and apply it to data (processing the same data with both pre-processing pipelines):

import com.github.waikatodatamining.androidmatrix.PreprocessingMap;
import java.io.FileInputStream;
import java.utils.Map;
import java.utils.HashMap;
 
PreprocessingMap preprocessingMap;
preprocessingMap = new PreprocessingMap(new FileInputStream("map.bin"));

double[] data = ...;
Map<String, double[]> map = new HashMap<>();
map.put("one", data);
map.put("two", data);

// for ordered application
double[][] processedOrdered = preprocessingMap.applyOrdered(data);
 
// for mapped application
Map<String, double[]> processedMapped = preprocessingMap.apply(data);

Android

See the following StackOverflow post for how to wrap a java.nio.ByteBuffer in a java.io.InputStream:

https://stackoverflow.com/a/6603018/4698227

nz.ac.waikato.cms.adams

University of Waikato - Data Mining

Commercial data mining activity at the University of Waikato.

Versions

Version
0.0.3
0.0.2
0.0.1