Daubechies D4 Wavelet

No algorithm description given

This algorithm performs the Haar Wavelet Transform (or inverse transform) on a one dimensional signal. This algorithm expects a signal which whose length is divisible by 2, and will perform the transform for as long as the length can be divided by 2, while still being evenly divisible. Unless a max number of iterations is specified by an int before the input signal. Sample Input [1,[1,2,3,1,2,3,4,0]] Sample Output {"transform":[2.69901760217,2.34546421158,4.37205020963,1.8971764754999998,1.44888873942,-0.38822856765000013,2.4148145657,-0.64704761275],"i":1} Inverse Input [[5.65685424933524,2.1516122217235534e-13,1.8660254037497057,0.1339745962132557,1.44888873942,-0.38822856765000013,2.4148145657,-0.64704761275],3] 
 Invers Output [0.9999999999129452,1.9999999998886333,2.999999999875018,0.9999999999147142,1.9999999998771734,2.9999999998447104,3.999999999853363,-5.548117520959295e-11]

Tags
(no tags)

Cost Breakdown

0 cr
royalty per call
1 cr
usage per second
avg duration

Cost Calculator

API call duration (sec)
×
API calls
=
Estimated cost
per calls
for large volume discounts
For additional details on how pricing works, see Algorithmia pricing.

No permissions required

This algorithm does not require any special permissions.


To understand more about how algorithm permissions work, see the permissions documentation.

1. Type your input

2. See the result

Running algorithm...

3. Use this algorithm

curl -X POST -d '{{input | formatInput:"curl"}}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/thatguy2048/DaubechiesD4Wavelet/0.1.1
View cURL Docs
algo auth
# Enter API Key: YOUR_API_KEY
algo run algo://thatguy2048/DaubechiesD4Wavelet/0.1.1 -d '{{input | formatInput:"cli"}}'
View CLI Docs
import com.algorithmia.*;
import com.algorithmia.algo.*;

String input = "{{input | formatInput:"java"}}";
AlgorithmiaClient client = Algorithmia.client("YOUR_API_KEY");
Algorithm algo = client.algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1");
AlgoResponse result = algo.pipeJson(input);
System.out.println(result.asJsonString());
View Java Docs
import com.algorithmia._
import com.algorithmia.algo._

val input = {{input | formatInput:"scala"}}
val client = Algorithmia.client("YOUR_API_KEY")
val algo = client.algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1")
val result = algo.pipeJson(input)
System.out.println(result.asJsonString)
View Scala Docs
var input = {{input | formatInput:"javascript"}};
Algorithmia.client("YOUR_API_KEY")
           .algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1")
           .pipe(input)
           .then(function(output) {
             console.log(output);
           });
View Javascript Docs
var input = {{input | formatInput:"javascript"}};
Algorithmia.client("YOUR_API_KEY")
           .algo("algo://thatguy2048/DaubechiesD4Wavelet/0.1.1")
           .pipe(input)
           .then(function(response) {
             console.log(response.get());
           });
View NodeJS Docs
import Algorithmia

input = {{input | formatInput:"python"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('thatguy2048/DaubechiesD4Wavelet/0.1.1')
print algo.pipe(input)
View Python Docs
library(algorithmia)

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("thatguy2048/DaubechiesD4Wavelet/0.1.1")
result <- algo$pipe(input)$result
print(result)
View R Docs
require 'algorithmia'

input = {{input | formatInput:"ruby"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('thatguy2048/DaubechiesD4Wavelet/0.1.1')
puts algo.pipe(input).result
View Ruby Docs
use algorithmia::*;

let input = {{input | formatInput:"rust"}};
let client = Algorithmia::client("YOUR_API_KEY");
let algo = client.algo("thatguy2048/DaubechiesD4Wavelet/0.1.1");
let response = algo.pipe(input);
View Rust Docs
import Algorithmia

let input = "{{input | formatInput:"swift"}}";
let client = Algorithmia.client(simpleKey: "YOUR_API_KEY")
let algo = client.algo(algoUri: "thatguy2048/DaubechiesD4Wavelet/0.1.1") { resp, error in
  print(resp)
}
View Swift Docs
Discussion
  • {{comment.username}}