awsdocs /
aws-doc-sdk-examples
Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Loading repository data…
caspervg / repository
This repository contains the Java and Spark components of the Aggr project, as well as a Docker-Compose file which combines all the backend components.
This repository contains the Java and Spark components of the Aggr project, as well as a Docker-Compose file which combines all the backend components. Available on DockerHub: caspervg/aggr
Implemented by Casper Van Gheluwe (UGent) during the summer of 2016, as part of an internship at TenForce.
X (currently 10) seconds and look for new aggregation requests.Aggr-Worker. It will also update the status of the request from not_started to in_flight in the triple-store.success or failure (if the worker threw an uncaught exception).net.caspervg.aggr.mastermain method in net.caspervg.aggr.master.AggrMasterMain.Spark-Master, or manually using the CLI in net.caspervg.aggr.worker.AggrWorkerMain. The CLI is useful if you do not want to use the Aggregation Request system. The full set of CLI parameters (as of August 4th, 2016) can be consulted below, or alteratively using the --help command line argument.Usage: <main class> [options] [command] [command options]
Options:
* -d, --dataset-id
Identifier of the dataset that the aggregations are based on
--help
Show this help message
Default: false
-i, --input
Input file (CSV) or SPARQL endpoint to retrieve source data from
Default: <empty string>
--input-class
Package and class name of the class for reading measurements
Default: net.caspervg.aggr.ext.TimedGeoMeasurement
-o, --output
Output directory to store (CSV) results (data) in
Default: <empty string>
--output-class
Package and class name of the class for storing measurements
Default: net.caspervg.aggr.ext.TimedGeoMeasurement
-s, --service
SPARQL endpoint to store results (metadata) in
Default: <empty string>
--write-data-csv
Write data to CSV instead of the triple store (metadata will still go to
the triple store
Default: true
--write-provenance
Write data on the provenance of centroids, measurements and
aggregations.Enabling this will greatly increase the time taken to write to the triple store
Default: false
-D
Additional dynamic parameters that could be useful for some aggregation
command, data reader and/or writer. e.g. 'query', 'latitude_key', ...
Syntax: -Dkey=value
Default: {}
Commands:
grid Aggregate the data by rounding to a grid
Usage: grid [options]
Options:
-g, --grid-size
Rounding to perform on the data to create the grid
Default: 5.0E-4
time Aggregate data based on a time interval
Usage: time [options]
Options:
-d, --max-detail
Number of time levels to create
Default: 8
kmeans Aggregate the data using a KMeans algorithm
Usage: kmeans [options]
Options:
-n, --iterations
Number of iterations to do to find the optimal mean locations
Default: 50
-m, --metric
Distance metric to use to calculate distances between data vectors
Default: EUCLIDEAN
Possible Values: [EUCLIDEAN, MANHATTAN, CHEBYSHEV, CANBERRA, KARLSRUHE]
-k, --num-centroids
Number of centroids (means) to produce
Default: 10
combination Aggregate the data in some way that does not require extra parameters
Usage: combination [options]
average Aggregate the data by taking the average of a certain data point
Usage: average [options]
Options:
* -n, --amount
Amount of measurements expected for a single point (generally this
should be #{others}+1)
Default: 0
-k, --key
Key of the measurements to select for the calculation. The
retrieved value should be convertible to a double, e.g. through
Double.parseDouble().
Default: weight
* -s, --others
Input files (CSV) with other data to calculate average with
diff Aggregate the data by taking the difference between a certain data point and another
Usage: diff [options]
Options:
-k, --key
Key of the measurements to select for the calculation. The
retrieved value should be convertible to a double, e.g. through
Double.parseDouble().
Default: weight
* -s, --others
Input files (CSV) with other data to calculate average with
worker.read.AggrRead is responsible for this, implemented by worker.read.CsvAggrReader (from CSV) and worker.read.JenaAggrReader (using SPARQL queries). How the measurement beans want to populate themselves with the data is left up to them. Classes implementing the Measurement interface have the methods setData(Map) and getReadKeys() for this purpose.worker.write.AggrResultWriter and worker.aggr.AggrWriter are responsible for this. Users can pick whether they want to write the measurements to CSV (recommended for big data) or to the triple store and whether they want to write provenance information to the triple store.double[]) and other (meta)data (for writing/aggregations), and also for setting the (meta)data (for reading/aggregations).UUID) and URI.2^(number of detail levels wanted) (default 8)0.0005)core.bean.Combinable interface.minuends) and those from the other dataset (the subtrahends).Combinable#combinationHash to determine which measurements to subtractweight)Combinable#combinationHash to determine which measurements to subtractnet.caspervg.aggr.ext package contains some implementations of the Measurement and Combinable interfaces that are useful to run aggregations on geo-data.latitude and longitude and stores them (as doubles) in the vector.Selected from shared topics, language and repository description—not editorial ratings.
awsdocs /
Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Vishal-raj-1 /
This Repository contain awesome vanilla JavaScript projects.
smv1999 /
weight)#{others}).Javadoc of each strategy.SparkKMeansClusterAggregator, using Spark.MLLib) and plain Java. An alternative version (SparkKMeansAggregator) using just Spark is also available; it has an unsolved bug/useful feature where it returns less centroids than requested if at any time they became uninhabited.25)50). Implementations may stop earlier if they determine that some other stop condition has been met.EUCLIDEAN). Note that setting this parameters has no effect when using the Spark MLLib k-Means aggregator; as it does not offer this level of customisation.This repository contains all the popular Competitive Programming and DSA questions with solutions for your Coding Interview Preparation.
thepranaygupta /
A repository that contains all the Data Structures and Algorithms concepts and their implementation in several ways, programming questions and Interview questions. The main aim of this repository is to help students who are learning Data Structures and Algorithms or preparing for an interview.
sukritishah15 /
This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
james34602 /
Audio DSP effects build on Android system framework layer. This is a repository contains a pack of high quality DSP algorithms specialized for audio processing.