search for: input_data

Displaying 20 results from an estimated 29 matches for "input_data".

2007 Aug 03
6
Problems saving an uploaded image to an app folder
...#39;' method exists for String": can anyone see what i''m doing wrong here? (i''ve just enclosed the model methods as all the controller does is call ''write_to_disc'' on my picture instance): #in class Picture attr_accessor :file_data def picture_file=(input_data) self.filename = input_data.original_filename self.content_type = input_data.content_type.chomp self.file_data = input_data.read end def write_to_disc #save the picture to newspipe/data/pictures with the name ''#{self.id}.extension'' new_filename = "#{s...
2018 Jun 01
0
Issue with batch forecasting of Time series data
...e code i am getting only one week of future forecast for all the servers. Also the week date for the predicted week is showing as the last week of the original data . Need help in two things How can i change the date for the predicted week, and how can i predict for more than one week. R code. input_data <- read.csv("input.csv", header= TRUE) head(input_data) str(input_data) library("forecast") library("DBI") library("RPostgreSQL") library("lubridate") Products = unique(input_data["Server.Name"][,]) output = matrix(0,nrow=(length(Produc...
2018 May 27
0
Help required in Batch Forecasting
...when ever i am trying to get more than one week it gives me error. Secondly in the one week forecast values i am getting the weekend date as the last week end in the original data set , where as it should be one week after that . Below is my code Let me know if anything else is required Code input_data <- read.csv("input.csv", header= TRUE) head(input_data) str(input_data) library("forecast") library("DBI") library("RPostgreSQL") library("lubridate") Products = unique(input_data["Server.Name"][,]) output = matrix(0,nrow=(length(Produc...
2004 Aug 06
3
question on usage of the libraries
...get JM> 50% unless you're encoding zeros or doing something wrong... I think I'm doing something wrong :o) Don't know what though. Also, I could not find in the documentation how to convert the sample-data to floats. Now I'm just doing something like float_data[index] = (float)input_data[index]; where input_data is a short *input_data "array". Is this correct? Or should I scale the data down to -1.0 <= x <= 1.0? JM> In normal operation, narrowband is 8000 Hz, wideband is 16000 Hz and JM> ultra-wideband is 32000 Hz, so I'd change the 22050 for something l...
2006 Jan 25
1
About echo cancelling
...ll . (I cannot feel the enhancement with activated AGC) My encode settings : 1. frame size : 320 bytes. 2. sampling rate : 16000 Hz (WB) 3. mono echo state initialized like this : echo_state = speex_echo_state_init(framesize, framesize*16); and befor encode : speex_echo_cancel(echo_state, input_data, decoded_data, echo_canceled_data, residue); input_data : recorded data decoded_data : previous decoded data echo_canceled_data : echo cancel output data Is there any faults for my "echo cancel" usage? P.S : Dear Jean-Marc. Thank you for kind answers. -------------- next p...
2008 Feb 13
4
[PATCHv3 1/3] x86: use ELF format in compressed images.
...Makefile index f88458e..9695aff 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -94,6 +94,20 @@ $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE SETUP_OBJS = $(addprefix $(obj)/,$(setup-y)) +sed-offsets := -e 's/^00*/0/' \ + -e 's/^\([0-9a-fA-F]*\) . \(input_data\|input_data_end\)$$/\#define \2 0x\1/p' + +quiet_cmd_offsets = OFFSETS $@ + cmd_offsets = $(NM) $< | sed -n $(sed-offsets) > $@ + +$(obj)/offsets.h: $(obj)/compressed/vmlinux FORCE + $(call if_changed,offsets) + +targets += offsets.h + +AFLAGS_header.o += -I$(obj) +$(obj)/header.o: $...
2008 Feb 13
4
[PATCHv3 1/3] x86: use ELF format in compressed images.
...Makefile index f88458e..9695aff 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -94,6 +94,20 @@ $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE SETUP_OBJS = $(addprefix $(obj)/,$(setup-y)) +sed-offsets := -e 's/^00*/0/' \ + -e 's/^\([0-9a-fA-F]*\) . \(input_data\|input_data_end\)$$/\#define \2 0x\1/p' + +quiet_cmd_offsets = OFFSETS $@ + cmd_offsets = $(NM) $< | sed -n $(sed-offsets) > $@ + +$(obj)/offsets.h: $(obj)/compressed/vmlinux FORCE + $(call if_changed,offsets) + +targets += offsets.h + +AFLAGS_header.o += -I$(obj) +$(obj)/header.o: $...
2008 Jan 31
0
[PATCH] x86: use ELF format in compressed images.
...Makefile index 254a583..0c629dc 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -86,6 +86,20 @@ $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE SETUP_OBJS = $(addprefix $(obj)/,$(setup-y)) +sed-offsets := -e 's/^00*/0/' \ + -e 's/^\([0-9a-fA-F]*\) . \(input_data\|input_data_end\)$$/\#define \2 0x\1/p' + +quiet_cmd_offsets = OFFSETS $@ + cmd_offsets = $(NM) $< | sed -n $(sed-offsets) > $@ + +$(obj)/offsets.h: $(obj)/compressed/vmlinux FORCE + $(call if_changed,offsets) + +targets += offsets.h + +AFLAGS_header.o += -I$(obj) +$(obj)/header.o: $...
2008 Jan 31
0
[PATCH] x86: use ELF format in compressed images.
...Makefile index 254a583..0c629dc 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -86,6 +86,20 @@ $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE SETUP_OBJS = $(addprefix $(obj)/,$(setup-y)) +sed-offsets := -e 's/^00*/0/' \ + -e 's/^\([0-9a-fA-F]*\) . \(input_data\|input_data_end\)$$/\#define \2 0x\1/p' + +quiet_cmd_offsets = OFFSETS $@ + cmd_offsets = $(NM) $< | sed -n $(sed-offsets) > $@ + +$(obj)/offsets.h: $(obj)/compressed/vmlinux FORCE + $(call if_changed,offsets) + +targets += offsets.h + +AFLAGS_header.o += -I$(obj) +$(obj)/header.o: $...
2006 Jan 31
0
About echo cancelling
...manual. And I use "previous decoded data" for echo frame. <<<<---- no problem??? I show you again my code about "echo cancel". // Initialize echo-canceller echo_state = speex_echo_state_init(framesize, framesize*16/*filterLength*/); speex_echo_cancel(echo_state, input_data, decoded_data, echo_canceled_data, residue); Preprocess(preprocess_state, echo_canceled_data, residue); -----Original Message----- From: Jean-Marc Valin [mailto:Jean-Marc.Valin@USherbrooke.ca] Sent: Tuesday, January 31, 2006 7:35 AM To: ??? Cc: speex-dev@xiph.org Subject: Re: [Speex-dev] About e...
2010 Nov 10
0
bug fix for speex_resampler_reset_mem?
I'm using resample.c from speex in my project, and was testing it by processing the same waveform twice, with a reset() call in the middle, as follows: short *input_data = read_waveform_as_linear(infileName, &rate, &num_samples, &num_channels); SpeexResamplerState *state = speex_resampler_init_frac(num_channels, in_rate, out_rate, in_rate, out_rate, quality, &error); speex_resampler_skip_zeros(state); speex_resampler_process_int(state, 0, input_da...
2008 Feb 06
0
[PATCHv2 1/3] x86: use ELF format in compressed images.
...Makefile index f88458e..9695aff 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -94,6 +94,20 @@ $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE SETUP_OBJS = $(addprefix $(obj)/,$(setup-y)) +sed-offsets := -e 's/^00*/0/' \ + -e 's/^\([0-9a-fA-F]*\) . \(input_data\|input_data_end\)$$/\#define \2 0x\1/p' + +quiet_cmd_offsets = OFFSETS $@ + cmd_offsets = $(NM) $< | sed -n $(sed-offsets) > $@ + +$(obj)/offsets.h: $(obj)/compressed/vmlinux FORCE + $(call if_changed,offsets) + +targets += offsets.h + +AFLAGS_header.o += -I$(obj) +$(obj)/header.o: $...
2008 Feb 06
0
[PATCHv2 1/3] x86: use ELF format in compressed images.
...Makefile index f88458e..9695aff 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile @@ -94,6 +94,20 @@ $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE SETUP_OBJS = $(addprefix $(obj)/,$(setup-y)) +sed-offsets := -e 's/^00*/0/' \ + -e 's/^\([0-9a-fA-F]*\) . \(input_data\|input_data_end\)$$/\#define \2 0x\1/p' + +quiet_cmd_offsets = OFFSETS $@ + cmd_offsets = $(NM) $< | sed -n $(sed-offsets) > $@ + +$(obj)/offsets.h: $(obj)/compressed/vmlinux FORCE + $(call if_changed,offsets) + +targets += offsets.h + +AFLAGS_header.o += -I$(obj) +$(obj)/header.o: $...
2006 Jan 30
2
can I update many rows with one call to the database?
Hello, How would I go about updating 7000 or so rows of my database with unique values? (In other words, I''m not setting them all to NULL or incrementing or something... each row gets a new, special value.) But I can''t seem to get my rails app to do this in less than 7000 connections to the database! I''ve looked very hard (3 horus!), and can''t find anything
2004 Aug 06
2
question on usage of the libraries
Hi, I'm not sure if I should post this question to this list. If not; please tell me. Ok, here it comes: Is the following code correct for compressing audio? The output I get is so extremely small, but what is more important: if I pass it through zlib, it gets at least 50% smaller! Init: int bitrate = max_bandwidth * 8; speex_bits_init(&libspeex_bits); if
2007 Jun 20
9
[PATCH 0/9] x86 boot protocol updates
[ This patch depends on the cross-architecture ELF cleanup patch. ] This series updates the boot protocol to 2.07 and uses it to implement paravirtual booting. This allows the bootloader to tell the kernel what kind of hardware/pseudo-hardware environment it's coming up under, and the kernel can use the appropriate boot sequence code. Specifically: - Update the boot protocol to 2.07, which
2007 Jun 20
9
[PATCH 0/9] x86 boot protocol updates
[ This patch depends on the cross-architecture ELF cleanup patch. ] This series updates the boot protocol to 2.07 and uses it to implement paravirtual booting. This allows the bootloader to tell the kernel what kind of hardware/pseudo-hardware environment it's coming up under, and the kernel can use the appropriate boot sequence code. Specifically: - Update the boot protocol to 2.07, which
2007 Jun 01
2
another RFC patch: bzImage with ELF payload
..._VERSION, .asciz UTS_RELEASE) +ELFNOTE(ELF_NOTE_BOOT, EIN_ARGUMENT_STYLE, .asciz "Linux") =================================================================== --- /dev/null +++ b/arch/i386/boot/compressed/piggy.S @@ -0,0 +1,10 @@ +.section .data.compressed,"a",@progbits + +.globl input_data, input_len, output_len + +input_len: .long input_data_end - input_data + +input_data: +.incbin "vmlinux.bin.gz" +output_len = .-4 +input_data_end: =================================================================== --- a/arch/i386/boot/compressed/vmlinux.lds +++ b/arch/i386/boot/compresse...
2007 Jun 01
2
another RFC patch: bzImage with ELF payload
..._VERSION, .asciz UTS_RELEASE) +ELFNOTE(ELF_NOTE_BOOT, EIN_ARGUMENT_STYLE, .asciz "Linux") =================================================================== --- /dev/null +++ b/arch/i386/boot/compressed/piggy.S @@ -0,0 +1,10 @@ +.section .data.compressed,"a",@progbits + +.globl input_data, input_len, output_len + +input_len: .long input_data_end - input_data + +input_data: +.incbin "vmlinux.bin.gz" +output_len = .-4 +input_data_end: =================================================================== --- a/arch/i386/boot/compressed/vmlinux.lds +++ b/arch/i386/boot/compresse...
2007 Jun 15
11
[PATCH 00/10] paravirt/subarchitecture boot protocol
This series updates the boot protocol to 2.07 and uses it to implement paravirtual booting. This allows the bootloader to tell the kernel what kind of hardware/pseudo-hardware environment it's coming up under, and the kernel can use the appropriate boot sequence code. Specifically: - Update the boot protocol to 2.07, which adds fields to specify the hardware subarchitecture and some