0.0.1 • Published 9 years ago

time-cluster v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

TimeCluster

Description

It might occur to you that you have a lot of timestamped objects that you want to cluster.

Features:

  • You pass a folder name and receive image information of all the visual files that can be found in the folder and its subdirectories
    // you can embed the file via node.js require command 
	var TimeCluster = require("./lib/timeCluster.js"); 
  • then you define an object and pass an array of timestamped objects
	var x = new TimeCluster(list);
  • you can specify a timframe, like this:
	var x = new TimeCluster(list, "day"); // valid calls are "minute", "hour", "day", "week", "year"
  • and you can also specify the field which contains the timestamp
	var x = new TimeCluster(list, "day", "date");  // default is "time"	
  • The functions returns an array of clustered objects